conda换源

  1. vi ~/.condarc
  2. #将文档内容删除并修改如下
  3. ssl_verify: true
  4. show_channel_urls: true
  5. channels:
  6. - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/linux-64/
  7. - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/linux-64/

最终.condarc中的内容如下:
image.png
测试conda search trinity
正确显示结果如下:

  1. Loading channels: done
  2. PackagesNotFoundError: The following packages are not available from current channels:
  3. - trinity
  4. Current channels:
  5. - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/linux-64
  6. - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/noarch
  7. - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/linux-64
  8. - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/noarch
  9. To search for alternate channels that may provide the conda package you're
  10. looking for, navigate to
  11. https://anaconda.org
  12. and use the search bar at the top of the page.