[英]Error message when installing using pip but pip installation is still successful
[英]pip installation error when installing a package
因此,我目前正在嘗試安裝此軟件包:
pip install git+https://github.com/Rapptz/discord.py@async
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會起作用許多。
我認為您在這里遇到setuptools沖突,可以通過更新setuptools來解決。
嘗試:
pip install setuptools --upgrade
如果出現問題,可以刪除以前的setuptools安裝。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.