pygame安装问题

2021-10-18 10:17:04 浏览数 (1)

刚刚我用pip install pygame时,安装竟然失败 报错如下: WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ConnectTimeoutError( 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( 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就安装好了

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

0 人点赞