pygame安装问题
发布日期:2021-06-29 14:37:53 浏览次数:2 分类:技术文章

本文共 1064 字,大约阅读时间需要 3 分钟。

刚刚我用pip install pygame时,安装竟然失败

报错如下:
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection obj
ect at 0x000001DC7B0AF490>, ‘Connection to pypi.tuna.tsinghua.edu.cn timed out. (connect timeout=15)’)’: /simple/pip/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection obj
ect at 0x000001DC7B0C26D0>, ‘Connection to pypi.tuna.tsinghua.edu.cn timed out. (connect timeout=15)’)’: /simple/pip/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ReadTimeoutError(“HTTPSConnectionPool(host=‘pypi.tuna.tsinghua.edu.cn’,
port=443): Read timed out. (read timeout=15)”)’: /simple/pip/

很奇怪,我明明网络很好怎么会timeout连接超时?于是我换个方法试试。

解决方案:
1.点击setting
2.右边我模块那里,双击一个模块
在这里插入图片描述
3.输入你想要安装的模块,然后点击左下角的install package就安装好了在这里插入图片描述

补充一下,如果大家安装模块遇到类似模块安装的问题,可以直接在这里搜索安装,大部分能解决,没有那么麻烦。

转载地址:https://chuanchuan.blog.csdn.net/article/details/109534226 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:python画一个可爱的皮卡丘(完整代码)
下一篇:C++求阶层和

发表评论

最新留言

第一次来,支持一个
[***.219.124.196]2024年04月25日 03时37分55秒