この URL を取得しようとしたときに HTTP エラーが発生しました。

質問:

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'

その理由は、condaソースが不明な URL を追加しており、使用できなくなっている (または放棄されている) ためです。

解決:

#重置源配置
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

おすすめ

転載: blog.csdn.net/weixin_45912366/article/details/127978124