解决anaconda安装出现CondaHTTPError问题

Step 1  :在命令行中输入并运行:(清华大学镜像

conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/ 
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes

Step 2 :更改配置文件

       按上面的设置镜像源后,再打开C:\Users\Administrator\.condarc这个文件,删除 -defaults这一行

 删除后.condar文件应如下:


Step 3 :安装

conda install [待安装库名]

   出现Proceed ([y]/n)? 输入y即可继续安装。

   输入IPython进入anaconda环境下“ import [库]” ,若未报错,则说明安装成功

猜你喜欢

转载自blog.csdn.net/walk_power/article/details/82957796