使用 pip 安装 PyGreSQL 失败



我目前正在尝试使用 pip install PyGreSQL 安装 PyGreSQL,但是,当我运行命令时,出现以下错误:

Could not import setuptools which is required to install from a source distribution.
Traceback (most recent call last):
   File "/usr/local/lib/python2.7/site-packages/pip/req/req_install.py", line 375, in setup_py 
       import setuptools  # noqa
   File "/usr/local/lib/python2.7/site-packages/setuptools/__init__.py", line 11, in <module>
       from setuptools.extern.six.moves import filterfalse, map
   File "/usr/local/lib/python2.7/site-packages/setuptools/setuptools/__init__.py", line 12, in <module>
       from setuptools.extension import Extension
   File "/usr/local/lib/python2.7/site-packages/setuptools/extension.py", line 8, in <module>
       from setuptools.extern.six.moves import map
ImportError: No module named extern.six.moves

有谁知道可能出了什么问题?据我所知,extern.six.moves有问题,但是,我在网上找不到有关此的任何内容......

这最终是由于安装工具未正确安装在我的机器上。感谢@Famarri帮助我意识到这一点

相关内容

  • 没有找到相关文章

最新更新