当我安装easy install时,无法通过pip正确导入六个模块

时间:2017-03-04 12:18:30

标签: python pip easy-install

它已声称我已安装或升级了六个模块

C:\Users\floatSD\Downloads\setuptools-34.3.1\setuptools-34.3.1>pip install --upgrade six

Requirement already up-to-date: six in c:\users\floatsd\anaconda3\lib\site-packages

但它显示错误运行easy_install.py

C:\Users\floatSD\Downloads\setuptools-34.3.1\setuptools-34.3.1>python easy_install.py

然后它返回:

Traceback (most recent call last):
  File "easy_install.py", line 4, in <module>
    from setuptools.command.easy_install import main
  File "C:\Users\floatSD\Downloads\setuptools-34.3.1\setuptools-34.3.1\setuptools\__init__.py", line 10, in <module>
    from six.moves import filter, map
ImportError: No module named six.moves

P.S。我的点子版本是9.0.1

我尝试卸载并再次安装六个,但仍无法正常工作

C:\Users\floatSD\Downloads\setuptools-34.3.1\setuptools-34.3.1>pip uninstall six
DEPRECATION: Uninstalling a distutils installed project (six) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
Uninstalling six-1.10.0:
  c:\users\floatsd\anaconda3\lib\site-packages\six-1.10.0-py3.5.egg-info
Proceed (y/n)? y
  Successfully uninstalled six-1.10.0

C:\Users\floatSD\Downloads\setuptools-34.3.1\setuptools-34.3.1>pip install six
Collecting six
  Downloading six-1.10.0-py2.py3-none-any.whl
Installing collected packages: six
Successfully installed six-1.10.0

C:\Users\floatSD\Downloads\setuptools-34.3.1\setuptools-34.3.1>python easy_install.py
Traceback (most recent call last):
  File "easy_install.py", line 4, in <module>
    from setuptools.command.easy_install import main
  File "C:\Users\floatSD\Downloads\setuptools-34.3.1\setuptools-34.3.1\setuptools\__init__.py", line 10, in <module>
    from six.moves import filter, map
ImportError: No module named six.moves

0 个答案:

没有答案