Como obter o pip funcional novamente?

4

Eu encontrei o problema abaixo, enquanto executava pip tentando instalar o rpyc. Mesmo que eu tente executar o pip sem nenhum argumento, ele ainda produz o mesmo erro. Qualquer ajuda seria muito appriciated, obrigado.

volt72@killadelph:~/zone/zone$ pip
Traceback (most recent call last):
  File "/usr/bin/pip", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.14-py2.7.egg/pkg_resources.py", line 2691, in <module>
    add_activation_listener(lambda dist: dist.activate())
  File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.14-py2.7.egg/pkg_resources.py", line 668, in subscribe
    callback(dist)
  File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.14-py2.7.egg/pkg_resources.py", line 2691, in <lambda>
    add_activation_listener(lambda dist: dist.activate())
  File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.14-py2.7.egg/pkg_resources.py", line 2192, in activate
    self.insert_on(path)
  File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.14-py2.7.egg/pkg_resources.py", line 2293, in insert_on
    "with distribute. Found one at %s" % str(self.location))
ValueError: A 0.7-series setuptools cannot be installed with distribute. Found one at /usr/local/lib/python2.7/dist-packages/setuptools-20.7.0-py2.7.egg
volt72@killadelph:~/zone/zone$ 
    
por Volt72'Killadelph32' 26.04.2016 / 00:26

2 respostas

3

Ok, depois de algumas pesquisas, decidi fazer o seguinte:

rm /usr/local/lib/python2.7/dist-packages/setuptools-20.7.0-py2.7.egg
sudo apt-get purge python-pip
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py

Agora o pip funciona sem problemas.

    
por Volt72'Killadelph32' 26.04.2016 / 02:07
0

Eu resolvi isso removendo a distribuição

sudo pip uninstall distribute
    
por user1025874 08.11.2017 / 12:51

Tags