PyCharm安装requests超时失败

论坛 期权论坛 脚本     
已经匿名di用户   2022-4-13 16:44   3502   0

在用PyCharm安装requests第三昂模块的时候一直失败,查看失败原因是连接超时

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000002362D46EC50>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/requests/

通过搜索找到一些国内的pip源。添加阿里云的仓库地址 ,注意要使用 https ,否则报以下错。

https://mirrors.aliyun.com/pypi/simple

Looking in indexes: http://mirrors.aliyun.com/pypi/simple/

WARNING: The repository located at mirrors.aliyun.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with '--trusted-host mirrors.aliyun.com'.
ERROR: Could not find a version that satisfies the requirement requests (from versions: none)
ERROR: No matching distribution found for requests

然后搜索点击install package 安装这个包、

参考博客 https://blog.csdn.net/qq_25964837/article/details/80295041

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:81
帖子:4969
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP