Could not fetch URL https://pypi.org/simple/pip/
解决办法
更换pip安装源头成阿里云或清华的
在Windows%appdata%/pip/pip.ini(无则新增对应文件夹及文件)
[global]
timeout = 6000
#index-url = https://pypi.tuna.tsinghua.edu.cn/simple
#trusted-host = pypi.tuna.tsinghua.edu.cn
index-url = http://mirrors.aliyun.com/pypi/simple/
trusted-host = mirrors.aliyun.com
效果切换后可以执行pip install tensorflow==2.4.1了,不在提示连接国外网站时候提示ssl配置问题了
原文链接:https://blog.youkuaiyun.com/studyvcmfc/article/details/116572099
https://blog.youkuaiyun.com/zhao_5352269/article/details/94432483
本文介绍了解决pip无法从PyPI官方源下载包的问题。通过更换为阿里云或清华大学镜像源,有效解决了因国外网站SSL配置导致的连接失败问题,并成功安装了TensorFlow 2.4.1。
1万+

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



