我无法再使用pip安装任何软件包,

时间:2018-11-04 09:15:06

标签: python-3.x pip

我一直在安装python软件包时使用pip,但由于某些无法解释的原因,它刚刚停止工作。我已经尝试了以下方法,但仍无法正常工作

  
      
  • 我升级了点子
  •   
  • 我回滚了点子
  •   
     

-i卸载了我的python发行版,然后重新安装/升级了它。这是我尝试时遇到的那种错误的追溯   用pip安装软件包

OS- windows 10
pip install profanity
    Collecting profanity
  Using cached https://files.pythonhosted.org/packages/f6/b4/07d53456462e26eee50abcae787c9380c01731ccc0b6c96233770e546989/profanity-1.1.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "C:\Users\MEME\AppData\Local\Programs\Python\Python37\lib\site-packages\pkg_resources\__init__.py", line 2698, in get_entry_map
        ep_map = self._ep_map
      File "C:\Users\MEME\AppData\Local\Programs\Python\Python37\lib\site-packages\pkg_resources\__init__.py", line 2669, in __getattr__
        raise AttributeError(attr)
    AttributeError: _ep_map

在处理上述异常期间,发生了另一个异常:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\MEME\AppData\Local\Temp\pip-install-xg7obvs0\profanity\setup.py", line 72, in <module>
    ['profanity=profanity:main'],
  File "C:\Users\MEME\AppData\Local\Programs\Python\Python37\lib\site-packages\setuptools\__init__.py", line 128, in setup
    _install_setup_requires(attrs)
  File "C:\Users\MEME\AppData\Local\Programs\Python\Python37\lib\site-packages\setuptools\__init__.py", line 117, in _install_setup_requires
    (k, v) for k, v in attrs.items()
  File "C:\Users\MEME\AppData\Local\Programs\Python\Python37\lib\site-packages\setuptools\dist.py", line 370, in __init__
    for ep in pkg_resources.iter_entry_points('distutils.setup_keywords'):
  File "C:\Users\MEME\AppData\Local\Programs\Python\Python37\lib\site-packages\pkg_resources\__init__.py", line 645, in iter_entry_points
    entries = dist.get_entry_map(group)
  File "C:\Users\MEME\AppData\Local\Programs\Python\Python37\lib\site-packages\pkg_resources\__init__.py", line 2701, in get_entry_map
    self._get_metadata('entry_points.txt'), self
  File "C:\Users\MEME\AppData\Local\Programs\Python\Python37\lib\site-packages\pkg_resources\__init__.py", line 2412, in parse_map
    raise ValueError("Entry points must be listed in groups")
ValueError: Entry points must be listed in groups
  

命令“ python setup.py egg_info”失败,错误代码为1   C:\ Users \ MEME \ AppData \ Local \ Temp \ pip-install-xg7obvs0 \ profanity \

0 个答案:

没有答案