How to install python3 in imx6q

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to install python3 in imx6q

Jump to solution
14,996 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
10,273 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
7 Replies
6,484 Views
mnguyen
Contributor I

I added: IMAGE_INSTALL_append += "python3-pillow" to local.conf, but bitbake gave the error below. Would you please help?  I am kinda new to Yocto.

NOTE: Runtime target 'python3-pillow' is unbuildable, removing...

Missing or unbuildable dependency chain was: ['python3-pillow']

ERROR: Required build target 'my-base-image' has no buildable providers.

Missing or unbuildable dependency chain was: ['my-base-image', 'python3-pillow']

 

0 Kudos
10,273 Views
toanjunifer
Senior Contributor I

How do you install pip on iMX6 ?

0 Kudos
10,274 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

0 Kudos
6,478 Views
mnguyen
Contributor I

So you don't need step 1?
"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"

Thanks

0 Kudos
10,273 Views
Rita_Wang
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
10,274 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
10,274 Views
Rita_Wang
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