HTTPSConnectionPool(host=‘files.pythonhosted.org‘, port=443): Read timed out的解决方法
pip超时报错:HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out的解决方法
·
问题描述
从图中可以看到,这个问题是因为访问files.pythonhosted.org超时引起的,换为国内的源就可以解决
这里推荐三个非常不错的国内镜像:
https://pypi.tuna.tsinghua.edu.cn/simple/ 清华大学镜像
http://pypi.douban.com/simple/ 豆瓣镜像
http://mirrors.aliyun.com/pypi/simple/ 阿里镜像
方法1:设置pip全局设置镜像源(推荐)
pip3 config --global set global.index-url https://mirrors.aliyun.com/pypi/simple/
pip3 config --global set install.trusted-host mirrors.aliyun.com
方法2:每次安装都指定源
pip3 install SQLAlchemy -i https://pypi.doubanio.com/simple
更多推荐
已为社区贡献1条内容
所有评论(0)