linux下使用conda命令报错解决办法

【linux下使用conda命令报错解决办法】1.在服务器上使用conda创建一个虚拟环境的时候报错信息如下:

conda create -y --name deepsignal Collecting package metadata: done Solving environment: doneUnavailableInvalidChannel: The channel is not accessible or is invalid. channel name: anaconda/cloud/bioconda channel url: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda error code: 404You will need to adjust your conda configuration to proceed. Use `conda config --show channels` to view your configuration's current state, and use `conda config --show-sources` to view config file locations.

2.查看configuration的目前状态。
conda config --show channelschannels: - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/ - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/ - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/ - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/menpo/ - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/ - conda-forge - bioconda - defaults - r

conda config --show-sources ==> /home/*/.condarc <== channels: - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/ - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/ - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/ - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/menpo/ - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/ - conda-forge - bioconda - defaults - r show_channel_urls: True

解决办法:给/home/*/.condarc这个目录下的文件下的内容全部删除就可以了重新创建虚拟环境了。

    推荐阅读