rpyc를 설치하려고 pip를 실행하는 동안 아래 문제가 발생했습니다. 인수 없이 pip를 실행하려고 해도 여전히 동일한 오류가 출력됩니다. 어떤 도움이라도 크게 감사하겠습니다. 감사합니다.
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$
답변1
좋아, 몇 가지 연구 끝에 나는 다음을 수행하기로 결정했습니다.
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
이제 pip는 문제 없이 작동합니다.
답변2
배포를 제거하여 해결했습니다.
sudo pip uninstall distribute