本地编译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 解决办法
原文地址:http://mannerwang.blog.51cto.com/12009183/1861962