无法安装setuptools

时间:2018-05-18 08:04:30

标签: python python-2.7 pycharm

我得到"未找到python包装工具" pycharm中的错误。 当我尝试通过以下命令

更新setuptools时
pip install --upgrade setuptools

我收到以下错误

Traceback (most recent call last):                                                                                        File "D:\FSM-Logistic\QGISAPI\apps\Python27\lib\runpy.py", line 162, in _run_module_as_main                               "__main__", fname, loader, pkg_name)                                                                                  File "D:\FSM-Logistic\QGISAPI\apps\Python27\lib\runpy.py", line 72, in _run_code                                          exec code in run_globals
  File "c:\Python27\Scripts\pip.exe\__main__.py", line 5, in <module>
  File "D:\FSM-Logistic\QGISAPI\apps\Python27\Lib\site-packages\pip\__init__.py", line 26, in <module>                      from pip.utils import get_installed_distributions, get_prog                                                           File "D:\FSM-Logistic\QGISAPI\apps\Python27\Lib\site-packages\pip\utils\__init__.py", line 27, in <module>                from pip._vendor import pkg_resources
  File "D:\FSM-Logistic\QGISAPI\apps\Python27\Lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 73, in <module>                                                                                                                        __import__('pip._vendor.packaging.specifiers')
  File "D:\FSM-Logistic\QGISAPI\apps\Python27\Lib\site-packages\pip\_vendor\packaging\specifiers.py", line 275, in <module>                                                                                                                         class Specifier(_IndividualSpecifier):                                                                                File "D:\FSM-Logistic\QGISAPI\apps\Python27\Lib\site-packages\pip\_vendor\packaging\specifiers.py", line 373, in Specifier
    r"^\s*" + _regex_str + r"\s*$", re.VERBOSE | re.IGNORECASE)
  File "D:\FSM-Logistic\QGISAPI\apps\Python27\lib\re.py", line 190, in compile
    return _compile(pattern, flags)
  File "D:\FSM-Logistic\QGISAPI\apps\Python27\lib\re.py", line 242, in _compile
    raise error, v # invalid expression
sre_constants.error: nothing to repeat

为什么我的包显示为空,即使我为项目解释器提供了正确的路径 enter image description here

0 个答案:

没有答案