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.
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 .
Hope this will help you
Hello,
Any version sonce 3.x and up can be use by yocto.
Regards