在anaconda prompt中创建tensorflow环境时报错:
尝试了很多种方法,最后终于解决,记录一下。
- 修改.condarc文件
路径:C:\用户\(你的用户名)\.condarc
文件
将里面的内容替换为以下内容,保存:
channels:
- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
- http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
- http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
show_channel_urls: true
- 清理缓存
conda clean -i
- 创建环境
conda create -n tensorflow python=3.6
创建成功。
- 激活tensorflow
activate tensorflow