2016-04-16 269 views
0

所以,我目前正在安裝該軟件包:PIP安裝錯誤安裝包時

pip install git+https://github.com/Rapptz/[email protected] 

Github上的位置:https://github.com/Rapptz/discord.py

,但我得到這個錯誤:

Complete output from command python setup.py egg_info: 
Traceback (most recent call last): 
    File "<string>", line 1, in <module> 
    File "/tmp/pip-build-khtOce/aiohttp/setup.py", line 61, in <module> 
    raise RuntimeError("aiohttp requires Python 3.4.1+") 
RuntimeError: aiohttp requires Python 3.4.1+ 

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-khtOce/aiohttp/ 

所以相反,我已經嘗試使用pip3來安裝相同的包,但我目前正在發生版本衝突,我不知道如何解決。

Traceback (most recent call last): 
File "/usr/local/bin/pip3", line 9, in <module> 
load_entry_point('pip==8.1.1', 'console_scripts', 'pip3')() 
File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.14- py2.7.egg/pkg_resources.py", line 305, in load_entry_point 
return get_distribution(dist).load_entry_point(group, name) 
File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.14-py2.7.egg/pkg_resources.py", line 2243, in load_entry_point 
raise ImportError("Entry point %r not found" % ((group,name),)) 
ImportError: Entry point ('console_scripts', 'pip3') not found 

這個昨天我記得做了,我可能已經大致安裝和重新PIP玩弄,但在此之前,當我試圖安裝相同的包時,PIP3是工作,我還記得得到同樣的錯誤,所以IDK的如果解決版本衝突會做很多事情。

+0

可能想看看這篇文章http://stackoverflow.com/questions/19427486/pip-importerror-entry-point-console-scripts-pip-not-found –

回答

0

我想你在這裏有一個setuptools衝突,這可能會通過更新setuptools來解決。

嘗試:

pip install setuptools --upgrade 

您可以刪除以前的setuptools安裝的情況下,它給你一個問題。

+0

nope setuptools已經是最新的 – user5501104