Python está confuso por causa de setuptools

3

Eu tenho problemas para fazer o Python funcionar corretamente, após uma confusão com o setuptools do Python. depois disso, não consigo executar flexget e outros programas sem receber este erro:

flexget execute
Traceback (most recent call last):
  File "/usr/local/bin/flexget", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 78, in <module>
    import setuptools._vendor.packaging.version
ImportError: No module named _vendor.packaging.version

Ou isto:

File "/usr/local/bin/easy_install", line 7, in <module>
    from setuptools.command.easy_install import main
  File "/usr/lib/python2.7/dist-packages/setuptools/__init__.py", line 12, in <module>
    from setuptools.extension import Extension
  File "/usr/lib/python2.7/dist-packages/setuptools/extension.py", line 7, in <module>
    from setuptools.dist import _get_unpatched
  File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 18, in <module>
    import pkg_resources
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 78, in <module>
    import setuptools._vendor.packaging.version
ImportError: No module named _vendor.packaging.version

Alguém pode me ajudar a consertar isso, por favor?

    
por Lasser 01.01.2015 / 23:10

0 respostas