在python 2.7 windows 10中安装请求模块

时间:2018-03-21 09:20:38

标签: python-2.7 python-requests

我已经安装了python 2.7,在环境变量中添加了尝试在python IDLE中导入请求模块的路径。 要安装我正在尝试使用的请求模块  python -m pip install requests 但我收到了错误

Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x040C7530>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/requests/ 
 Could not find a version that satisfies the requirement requests (from versions: )
No matching distribution found for requests 

请帮助我,我能做什么

1 个答案:

答案 0 :(得分:0)

这个答案不会告诉你为什么会收到这个错误,但建议最后解决方法。

只是一个疯狂的猜测,但错误可能是因为没有正确版本的pip?

Python : ImportError: No module named requests