conda换源
vi ~/.condarc
#将文档内容删除并修改如下
ssl_verify: true
show_channel_urls: true
channels:
- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/linux-64/
- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/linux-64/
最终.condarc
中的内容如下:
测试conda search trinity
正确显示结果如下:
Loading channels: done
PackagesNotFoundError: The following packages are not available from current channels:
- trinity
Current channels:
- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/linux-64
- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/noarch
- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/linux-64
- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/noarch
To search for alternate channels that may provide the conda package you're
looking for, navigate to
https://anaconda.org
and use the search bar at the top of the page.