Centos 7 Python compilation error Importerror:no module named six solution

Source: Internet
Author: User
Tags rpmbuild openvswitch

Locally compiled open vswitch times wrong

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 sixImportError: No module named sixTraceback  (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 siximporterror: no module named sixtraceback  (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 siximporterror: no module  named sixtraceback  (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 sixImportError: No module named  sixtraceback  (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 siximporterror: no module named six

Can be roughly judged because Python lacks a component bug


The workaround is to install it manually:

Yum Install-y python-six

Download path: 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 compilation error Importerror:no module named six solution

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.