The problem of downloading the error "CondaHTTPError" when using conda to change the python version

1. Problems

Recently I was looking at an open source project. Since you need to python 3.7change it to python 3.6, Anaconda Promptenter the command in it: conda install python=3.6. But the speed is very slow, and there is a CondaHTTPErrorproblem of: (because the interface has been closed, so I can't take a screenshot and report an error...)

2. Solve

AnacondaThe default mirror is official, and the access speed is very slow outside the country. Therefore, in order to speed up the access speed, it is necessary Anaconda Promptto set the mirror image of Tsinghua University in the command line as follows:

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

Copy it directly Anaconda Prompt, and then execute conda install python=3.6it, the download speed is very fast, and no error is reported. Finish!

Related Posts