1、更换镜像源,国内的pip源如下:
阿里云 http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣(douban) http://pypi.douban.com/simple/
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/
2、若出现镜像库不是受信任的或安全的主机提示。
使用“–trusted host “镜像库地址””允许此警告。
all::pip install tensorflow==1.13.1 -i https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn/simple/(其中的tensorflow==1.13.1 是你需要下载的,根据自己需求自行更改)
来源:CSDN
作者:寻水的鱼2019
链接:https://blog.csdn.net/theadore2017/article/details/104550251