使用Python3运行Bitback,出现此错误,有人可以告诉我解决方案吗?

时间:2019-07-12 08:00:29

标签: yocto

我正在使用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。

它怎么会这样?

0 个答案:

没有答案