1、查看源配置信息
conda config --show-sources
2、当前源内包不可用
PackagesNotFoundError: The following packages are not available from current channel
- 这里以我安装生信环境时,安装spatialde为例
按照一下操作完成包安装:
(1)查询包所在的版本
anaconda search -t conda spatialde
- 查询包所存在的版本,后面可以根据需求替换成自己的版本
(2)根据需求选择自己要安装包的版本,输入以下命令查看安装渠道
anaconda show bioconductor-spatialdecon
3、安装源配置
配置清华源的时候,很多时候配置了,比如:
但是会报错:“CondaHTTPError: HTTP 000 CONNECTION FAILED for url
这个时候,一般是把https 修改为 http
- conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/win-64
- conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/win-64
- conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/win-64
- conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/win-64
很多时候,只是配置到对应路径下,也是不能用的,比如: http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free,这个时候需要根据自己的系统去配置,比如使用的是windows的64位系统,就指定win-64