Which python version should be used as "python" command?

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

Which python version should be used as "python" command?

1,428 Views
diverger
Contributor II

It seems from Ubuntu 20.04, the default "python" command is deliberately undefined. Actually, all official Ubuntu packages depend explicitly on "python2" or "python3". The IMXLXYOCTOUG recommend Ubuntu versions >= 20.04. But still ask the user to install 'python' package. Then which version should I use as 'python' command when compiling the Yocto project, 2 or 3?

 

Thanks.

0 Kudos
Reply
2 Replies

1,394 Views
L30
Contributor II

If you are referring to the python host verison , you can retrieve the infos that you need on the yocto project documentation.

Example

https://docs.yoctoproject.org/migration-guides/migration-3.1.html

That's for migrating to the dunfell branch from a previous one , you can see from the screenshot i've taken that python 3.5 is in the requirements .

L30_0-1673874626280.png

Hope this will help you

0 Kudos
Reply

1,392 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

Any version sonce 3.x and up can be use by yocto.

Regards

0 Kudos
Reply