越来越多的Linux发行版使用python 3.x作为默认python,但是Yocto仍使用python 2.7。如何在这些发行版之一中使用Yocto?
python大神给出的解决方案
Yocto始终在virtualenv中运行。但是我找到了一种使用python 3欺骗它的方法:
$ source oe-init-build-env build
$ mkdir build/python-bin
$ ln -s /usr/bin/python2 build/python-bin/python
$ ln -s /usr/bin/python2-config build/python-bin/python-config
$ export PATH=$(pwd)/build/python-bin:${PATH}
感谢你的帮助 !