WARNING: Retrying after connection broken by ‘ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x0500E2D0>, ‘Connection to pypi.org timed out. (connect timeout=15)’)’: /simple/pip/
这个query是关于在安装Python包时遇到的连接超时问题。你可以尝试更换网络环境或者使用国内镜像源来解决这个问题。以下是如何更换国内镜像源的方法:
1.打开命令行窗口(Windows系统下按Win+R键,输入cmd,然后回车)。
2.输入以下命令,将pip源更换为国内镜像源(以清华镜像为例):
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
3.重新尝试安装你需要的Python包
4.这些是国内的pip镜像:
清华:https://pypi.tuna.tsinghua.edu.cn/simple
阿里:http://mirrors.aliyun.com/pypi/simple/
豆瓣:http://pypi.douban.com/simple/
中国科学技术大学:http://pypi.mirrors.ustc.edu.cn/
华中理工大学:http://pypi.hustunique.com/
山东理工大学:http://pypi.sdutlinux.org/