错误原因 :
使用了被停用的清华的或者中科大的源直接导致的。
解决方法:
在 c:/users/administar 里面有一个 ..condarc 的文件,可以用notepad++打开,将
channels:
- defaults
show_channel_urls: true
ssl_verify: true
变成这样就可以了,然后可以在试试
conda create --name tensorflow-gpu python = 3.6
就可以创建tensorflow的环境了
在安装tensorflow的cpu或者GPU版本时,如果没有国内的镜像,下载起来是非常慢的,可能也就几K吧。
国内的anaconda镜像源:
经过实验,目前清华的源一个都用不了了,中科大的源能用两个,如下:
channels:
- https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
- https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
- defaults
show_channel_urls: true
ssl_verify: true
亲测可用,如图:
速度还是很快的。