pip源更换:
在C:\Users\XXX下新建一个文件夹,重命名为pip。
在pip文件夹里面新建一个文本文档,并重新命名为:pip.ini,需要修改后缀。
在pip.ini里面添加下面的信息(采用阿里云):
[global]
trusted-host = mirrors.aliyun.com
index-url = http://mirrors.aliyun.com/pypi/simple
conda源更换:
打开CMD,输入:
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
在C:\Users\XXX下有一个.condarc文件,打开之后应该是这样的
channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
show_channel_urls: true
更新tensorflow:
pip install -U tensorflow
原文:https://blog.csdn.net/linbaoxin111/article/details/79921848