文章目录
- 一、报错示例:
- 二、解决办法:
- 2.1 查看配置 `conda config --show-sources`
- 2.2 修改文件 `/home/XXXX/.condarc`
一、报错示例:
UnavailableInvalidChannel: HTTP 404 NOT FOUND for channel nvidia <http://mirrors.tuna.tsinghua.edu.cn/anaconda/nvidia>
二、解决办法:
2.1 查看配置 conda config --show-sources
==> /home/XXXX/.condarc <==
channels:- https://repo.continuum.io/pkgs/free/- https://repo.continuum.io/pkgs/main/- defaults
show_channel_urls: True
或者
#查看配置
conda config --show
2.2 修改文件 /home/XXXX/.condarc
- 原始:
channels:- https://repo.continuum.io/pkgs/free/- https://repo.continuum.io/pkgs/main/- defaults
show_channel_urls: True
- 修改为:
channels:- defaults
show_channel_urls: true
channel_alias: http://mirrors.tuna.tsinghua.edu.cn/anaconda
default_channels:- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/pro- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
custom_channels:conda-forge: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloudmsys2: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloudbioconda: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloudmenpo: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloudpytorch: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloudsimpleitk: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
参考:
https://blog.csdn.net/qq_35000538/article/details/130245245
https://blog.csdn.net/weixin_38924500/article/details/124143491
∼ O n e p e r s o n g o f a s t e r , a g r o u p o f p e o p l e c a n g o f u r t h e r ∼ \sim_{One\ person\ go\ faster,\ a\ group\ of\ people\ can\ go\ further}\sim ∼One person go faster, a group of people can go further∼