最近在pycharm用 conda create -n lseg python=3.7 指令创建虚拟环境时出现了报错:UnavailableInvalidchannel: The channel is not accessible or is invalid.
说明原本的通道无法使用了。
解决方法:
尝试了几个方法,发现报错中=的提示更有效果。
You will need to ajust your conda configuration to proceed.
Use ‘cona config --show channels’ to view your configuration’s current state,
and use ‘conda config --show-sources’ to view config file location.
在pycharm终端中输入指令:
查看,发现里面的default_channels和custom_channels全是aliyun(阿里云)的通道,大概率是这些通道无法使用:
conda config --show-sources
因此,我将通过以下步骤将阿里源换成清华源:
首先进入.condarc文件
nano /home/路径/.condarc
修改其中的default_channels和cust