无法在Python中安装特定库
我正在尝试用pip安装gevent,但安装失败无法在Python中安装特定库,python,pip,gevent,python-wheel,Python,Pip,Gevent,Python Wheel,我正在尝试用pip安装gevent,但安装失败 Requirement already satisfied: gevent in c:\program files (x86)\python36-32\lib\site-packages (1.3.4) Requirement already satisfied: cffi>=1.11.5; sys_platform == "win32" and platform_python_implementation == "CPython" in c
Requirement already satisfied: gevent in c:\program files (x86)\python36-32\lib\site-packages (1.3.4)
Requirement already satisfied: cffi>=1.11.5; sys_platform == "win32" and platform_python_implementation == "CPython" in c:\program files (x86)\python36-32\lib\site-packages (from gevent) (1.11.5)
Requirement already satisfied: greenlet>=0.4.13; platform_python_implementation == "CPython" in c:\program files (x86)\python36-32\lib\site-packages (from gevent) (0.4.13)
Requirement already satisfied: pycparser in c:\program files (x86)\python36-32\lib\site-packages (from cffi>=1.11.5; sys_platform == "win32" and platform_python_implementation == "CPython"->gevent) (2.18)
tweepy 3.6.0 has requirement requests>=2.11.1, but you'll have requests 2.10.0 which is incompatible.
请帮我解决这个错误 错误显示请求包版本不兼容。 那么,使用以下命令更新请求如何:
pip install --upgrade requests
希望对您有所帮助安装tweepy时出错。错误显示:
tweepy 3.6.0 has requirement requests>=2.11.1, but you'll have requests 2.10.0 which is incompatible.
因此,您需要升级请求
对于linux,要安装:
pip install requests
对于linux,要升级:
pip install requests --upgrade
希望对您有所帮助安装
gevent
成功。安装tweepy
时,您似乎遇到了其他问题。可能是您在这里没有向我们展示的其他软件包要求requests==或No,它没有安装。我知道这是说需求已经满足了,但是当我运行脚本时,我得到了“from gevent import monkey ModuleNotFoundError:No module name'gevent'”。错误表明您需要升级请求,以满足tweepy
的需求。还有一个建议是,在处理多个python项目时,最好使用virtualenv
Ohh@Damian你在用windows,对吗?您能够在环境变量中包含python吗?我不知道virtualenv
。但是现在我如何更新tweepy?