首页 > 代码库 > Centos 7 python 编译报错 ImportError: No module named six 解决办法
Centos 7 python 编译报错 ImportError: No module named six 解决办法
本地编译Open vSwitch时报错
Traceback (most recent call last): File "./ovsdb/ovsdb-idlc.in", line 8, in <module> import ovs.json File "/root/rpmbuild/BUILD/openvswitch-2.6.0/python/ovs/json.py", line 21, in <module> import six ImportError: No module named six Traceback (most recent call last): File "./ovsdb/ovsdb-idlc.in", line 8, in <module> import ovs.json File "/root/rpmbuild/BUILD/openvswitch-2.6.0/python/ovs/json.py", line 21, in <module> import six ImportError: No module named six Traceback (most recent call last): File "./ovsdb/ovsdb-idlc.in", line 8, in <module> import ovs.json File "/root/rpmbuild/BUILD/openvswitch-2.6.0/python/ovs/json.py", line 21, in <module> import six ImportError: No module named six Traceback (most recent call last): File "./ovsdb/ovsdb-idlc.in", line 8, in <module> import ovs.json File "/root/rpmbuild/BUILD/openvswitch-2.6.0/python/ovs/json.py", line 21, in <module> import six ImportError: No module named six Traceback (most recent call last): make: *** [tests/idltest.ovsidl] Error 1 File "./ovsdb/ovsdb-idlc.in", line 8, in <module> make: *** Waiting for unfinished jobs.... import ovs.json File "/root/rpmbuild/BUILD/openvswitch-2.6.0/python/ovs/json.py", line 21, in <module> import six ImportError: No module named six
可以大致判断是因为python缺少组件的bug
解决办法就是手动安装:
yum install -y python-six
下载路径:http://mirrors.163.com/centos/7/os/x86_64/Packages/python-six-1.9.0-2.el7.noarch.rpm
2016-10-14
Centos 7 python 编译报错 ImportError: No module named six 解决办法
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。