1、Xshell登陆自己的账户,执行conda config --remove-key channels恢复默认源配置;
2、vim .condarc进入环境配置文件,将defaults删除,:wq保存并退出编辑;
3、执行
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes
添加清华源镜像;4、conda create -n yourname python=version创建环境
附录:conda常用命令
source activate (虚拟环境名称) 激活环境
source deactivate 退出当前环境
conda remove -n (虚拟环境名称) --all 删除环境