How to install python3 in imx6q

cancel
Showing results for 
Search instead for 
Did you mean: 

How to install python3 in imx6q

Jump to solution
8,444 Views
yanggao
Contributor III

Hi,


My board is iMX6Q Sabre Lite with a image built using yocto morty. As I would like to use Python3 but the actuel is Python2.7, would you please tell me how I can install python3 in imx6q? Or how to rebuild the image that contains python3?


Thank you in advance!

Yang GAO

Labels (2)
1 Solution
3,721 Views
yanggao
Contributor III

Hi, 

Finally I have succeeded to install python3 and python3-pip in Yocto for imx6. Just for the third step, add CORE_IMAGE_EXTRA_INSTALL += " python3 python3-pip" in the local.conf. Thanks for all helps!

Have a nice day.

Yang

View solution in original post

0 Kudos
5 Replies
3,721 Views
toanjunifer
Senior Contributor I

How do you install pip on iMX6 ?

0 Kudos
3,722 Views
yanggao
Contributor III

Hi, 

Finally I have succeeded to install python3 and python3-pip in Yocto for imx6. Just for the third step, add CORE_IMAGE_EXTRA_INSTALL += " python3 python3-pip" in the local.conf. Thanks for all helps!

Have a nice day.

Yang

View solution in original post

0 Kudos
3,721 Views
b45499
NXP TechSupport
NXP TechSupport

Hi,

I am very glad it works. If you have new questions you can continue create thread in our commnunity.

Have a nice day

Rita

0 Kudos
3,721 Views
yanggao
Contributor III

Hi Rita,

Thank you very much! 

I read the links that you have mentioned, would you please confirm whether the following steps are correct for installing python3 and python3-pip in Yocto for imx6q sabre lite? 

1. copy the recipes files python3_3.5.3.bb and python3-pip_9.0.1.bb (because I need also python3-pip) in
fsl-community-bsp/sources/meta-openembedded/meta-python/recipes-devtools/python

2. in build directory, execute:

    $bitbake python3

    $bitbake python3-pip

3. add IMAGE_INSTALL_append = " python3" and IMAGE_INSTALL_append = " python3-pip" in the local.conf

4. rebuild image: bitbake core-image-x11

Thanks again!

Yang

0 Kudos
3,721 Views
b45499
NXP TechSupport
NXP TechSupport

Hi,

You can try  the latest python 3 community recipe:

Recipe reporting system - python3 

Hope the follows thread can do some help for you.

https://community.nxp.com/message/905562?commentID=905562#comment-905562 

Tool to dump and analyze IVT/DCD data in i.MX binaries 

Have a nice day

Rita

0 Kudos