美文网首页
Miniconda安装与配置

Miniconda安装与配置

作者: weixinsuoxian | 来源:发表于2019-04-25 14:57 被阅读0次

Anaconda 源使用帮助

地址

https://mirrors.ustc.edu.cn/anaconda/

#Miniconda 安装包可以在 https://mirrors.ustc.edu.cn/anaconda/miniconda/ 下载。

#1 软件的下载和安装
# download latest conda installer
wget -c  https://repo.continuum.io/miniconda/Miniconda3-4.4.10-Linux-x86.sh

# run the installer
bash Miniconda3-latest-Linux-x86_64.sh

# delete the installer after successful run
rm Miniconda3-latest-Linux-x86_64.sh

# add the conda path to our shell config files
echo 'export PATH="/home/manager/miniconda3/bin:$PATH"' >> ~/.bashrc

#如果需要安装很多packages,你会发现conda下载的速度经常很慢,因为Anaconda.org的服务器在国外。所幸的是,清华/科大镜像源有Anaconda仓库的镜像,我们将其加入conda的配置即可:

#2 添加USTC仓库镜像:
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/

conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/

conda config --set show_channel_urls yes

 #Conda 附加库: Conda Forge
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/

 #Conda 附加库: msys2
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/msys2/

 #Conda 附加库: bioconda
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/bioconda/

 #Conda 附加库: menpo
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/menpo/

#执行完上述命令后,会生成~/.condarc(Linux/Mac)文件,记录着我们对conda的配置,直接手动创建、编辑该文件(vim命令,可以直接修改conda源)是相同的效果。

参考:http://mirrors.ustc.edu.cn/help/anaconda.html?tdsourcetag=s_pcqq_aiomsg#id2

相关文章

网友评论

      本文标题:Miniconda安装与配置

      本文链接:https://www.haomeiwen.com/subject/odhzgqtx.html