解决 An HTTP error occurred when trying to retrieve this URL.问题

question:

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.

If your current network has https://www.anaconda.com blocked, please file
a support request with your network engineering team.

'https://repo.anaconda.com/pkgs/main/linux-64'

The reason is that the conda source has added an unknown URL, which can no longer be used (or discarded)

solution:

#重置源配置
conda config --remove-key channels
#重新添加清华源
>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 --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
 conda config --set show_channel_urls yes

Guess you like

Origin blog.csdn.net/weixin_45912366/article/details/127978124