Tag Archives: No module named extern.six.moves

[Solved] No module named extern.six.moves

 

C:\Users\Qin>pip install setuptools
Collecting setuptools
  Downloading http://mirrors.aliyun.com/pypi/packages/3b/7e/293d19ccd106119e35db4bf3e111b1895098f618b455b758aa636496cf03/setuptools-28.8.0-py2.py3-none-any.whl (472kB)
    100% |████████████████████████████████| 481kB 6.4MB/s
Installing collected packages: setuptools
Successfully installed setuptools-28.8.0

C:\Users\Qin>pip install requests[socks]
Requirement already satisfied: requests[socks] in e:\python\lib\site-packages
Collecting PySocks!=1.5.7,>=1.5.6; extra == "socks" (from requests[socks])
  Downloading http://mirrors.aliyun.com/pypi/packages/03/a5/957346ba692216cc00e8146fb1a5da0854f8320d7eb073b1cfcb7ad977b5/PySocks-1.5.6.tar.gz
Could not import setuptools which is required to install from a source distribution.
Traceback (most recent call last):
  File "e:\python\lib\site-packages\pip\req\req_install.py", line 387, in setup_py
    import setuptools  # noqa
  File "e:\python\lib\site-packages\setuptools\__init__.py", line 10, in <module>
    from setuptools.extern.six.moves import filter, filterfalse, map
  File "e:\python\lib\site-packages\setuptools\setuptools\__init__.py", line 11, in <module>
    from setuptools.extension import Extension
  File "e:\python\lib\site-packages\setuptools\extension.py", line 7, in <module>
    from setuptools.extern.six.moves import map
ImportError: No module named extern.six.moves

I tried it on the Internet

pipinstall-U setuptools

I’ve also tried to reload setup tools with the command. The problem remains

Finally, you can go to X:: – Python, lib, site packages, delete two related folders of setup tools and one of six-1.10.0, then re install setup tools, and then install PIP install requests [socks], and everything will be OK