How to install python3 in imx6q

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to install python3 in imx6q

跳至解决方案
15,389 次查看
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

标签 (2)
标记 (2)
1 解答
10,666 次查看
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 项奖励
7 回复数
6,877 次查看
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 项奖励
10,666 次查看
toanjunifer
Senior Contributor I

How do you install pip on iMX6 ?

0 项奖励
10,667 次查看
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 项奖励
6,871 次查看
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 项奖励
10,666 次查看
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 项奖励
10,667 次查看
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 项奖励
10,667 次查看
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 项奖励