在学习TensorFlow时,需要下载tensorflow-gpu 第三方库,始终卡在了cudatoolkit
提示如下异常信息:
An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
解决方案:
可以用清华大学提供的镜像
conda config --add channels 'https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/'
conda config --set show_channel_urls yes
在C:\Users\用户名 目录下找到并打开 .condarc 文件加上如下内容:
channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
- defaultsshow_channel_urls: yes
然后下载