#给anaconda3权限,否则非root用户无法写入环境 chmod 777 -R '/home/your name/anaconda3' 1.运行Anaconda env
conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
#是http不是https#
2.设置启动设置好的国内镜像源
conda config --set show_channel_urls yes
3.查看是否添加上了源
conda config --show-sources
sudo gedit ~/.condarc
#清华镜像加入channel,速度有提升
#basemap是matplotlib的子包,直接安装一直solving environment没有反应,这样就可以了
#注意:网址http://中间没有空格,如果有了空格,会出现 #usage: conda-script.py [-h] [-V] command ... #conda-script.py: error: unrecognized arguments: #//mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
#执行“conda config --remove-key channels”命令,恢复Anaconda的源为默认
#删除执行“conda config --remove channels +http...”命令