How can I add Python3 in my image?

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

How can I add Python3 in my image?

1,001 Views
ykkst
Contributor I

Hi.

I'm trying to build my image with python3.

As pytno3 recipes are already included in my source.

If I try "bitbake python3", it finishes with no problem. 

So I added line "CORE_IMAGE_EXTRA_INSTALL += " python3" in local.conf.

But I'm keep getting ERROR saids:

ERROR: python3 not found in the base feeds (imx6sxsabresd cortexa9hf-vfp-neon-mx6qdl cortexa9hf-vfp-neon cortexa9hf-vfp armv7ahf-vfp-neon armv7ahf-vfp armv6hf-vfp armv5ehf-vfp armv5hf-vfp noarch any all).

I also looked into this thread

How to install python3 in imx6q 

and tried the steps written there, but it didn't work for me.

Could anyone tell me how to fix this?

Thanks.

Labels (1)
0 Kudos
3 Replies

848 Views
karangajjar
Senior Contributor II

Hi ykkst,

We tried adding python3 using below command in local.conf:

IMAGE_INSTALL_append += " python3"

And we are able to locate python3 in /usr/bin/ after building the image.

We checked in yocto zeus. If above command does not work for you, can you let us know which Yocto version are you using? So we can also check on the same.

Regards,

Karan Gajjar

0 Kudos

848 Views
ykkst
Contributor I

Hi karan

Thank you for answering.

I tried 

IMAGE_INSTALL_append += " python3"

too, but result was same.

I'm using dizzy.

I also tried adding python3 using fido, but result was same.

Then I added

IMAGE_INSTALL_append = " python3-misc python3-modules python3-man  python3-pyvenv libpython3"

to local.conf, that gives me python3 in my image...

I am not sure whether my image now has all python3 modules I need.

Does the line I added supposed to work fine?

Regards,

ykkst

0 Kudos

848 Views
joanxie
NXP TechSupport
NXP TechSupport

one can use 5.4.3 bsp vesion, which supports python3 already, when the board boot up, you can use "python3" to check

0 Kudos