已解决:pip安装第三方库pygal报错 Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._ve
ndor.urllib3.connection.HTTPSConnection object at 0x000001525C689CD0>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/pygal
问题描述:
使用pip命令安装第三方库:
pip install pygal
之后报错:

Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._ve
ndor.urllib3.connecti
当使用pip安装第三方库如pygal时,遇到'Connection to pypi.org timed out.'错误。问题由网络问题和国外pip源的访问速度引起。解决办法是更换国内的pip源,例如使用清华大学或阿里云的镜像,并在安装时指定--trusted-host参数来信任新的源。
订阅专栏 解锁全文


被折叠的 条评论
为什么被折叠?



