首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在python 2.7 windows 10中安装请求模块

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

Stack Overflow用户
提问于 2018-03-21 17:20:38
回答 1查看 2.6K关注 0票数 1

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

代码语言:javascript
复制
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 

请帮帮我,我能做些什么

EN

回答 1

Stack Overflow用户

发布于 2018-04-04 05:32:08

这个答案不会告诉你为什么会出现这个错误,但最后会建议一个变通方法。

只是胡乱猜测,但可能是由于没有正确的pip版本而导致的错误?

Python : ImportError: No module named requests

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/49402328

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档