我正在使用ubuntu 12,并且安装了python 2.7 + python 3.4
现在,我已引用此帖子: Using Yocto with a distribution using python3 by defaults
我已根据此更改:
diff --git a/oe-init-build-env b/oe-init-build-env
现在,我得到了这个奇怪的结果。
root@ubuntu:/opt/tisdk# cd sources/oe-core/
root@ubuntu:/opt/tisdk/sources/oe-core# source oe-init-build-env build
File "<string>", line 1
import sys; print sys.version_info >= (2,7,3)
^
SyntaxError: invalid syntax
OpenEmbedded requires 'python' to be python v2 (>= 2.7.3), not python v3.
Please upgrade your python v2.
BitBake requires Python 3.4.0 or later as 'python3'
root@ubuntu:/opt/tisdk/sources/oe-core#
奇怪的是: OpenEmbedded需要Python V2。 Bitbake需要Python3。
它怎么会这样?