Centos 7 python 编译报错 ImportError: No module named six 解决办法
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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 解决办法的主要内容,如果未能解决你的问题,请参考以下文章
centos6 编译的程序需要在 centos7上运行报错 error while loading shared libraries: libgtop-2.0.so.7?