CentOS 7 安装 Anaconda3


CentOS 7 安装 Anaconda3

  1. 官网下载 Anaconda3-2019.03-Linux-x86_64.sh
  2. yum install -y bzip2
  3. bash Anaconda3-2019.03-Linux-x86_64.sh
  4. cd /root 执行 ls -a
  5. vim .bashrc输入i,文件结尾追加一行 export PATH="/root/anaconda3/bin:$PATH",按esc,输入:wq保存并退出
  6. source /root/.bashrc
  7. 查看目前的源目录
    conda config --show
  8. 添加中科大源,速度不慢建议不换源(国内几个源已经没有了 2020.12.10 )
    conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
    conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
    conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/
    conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/msys2/
    conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/bioconda/
    conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/menpo/
    
    conda config --set show_channel_urls yes
    
  9. 添加清华源
    conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
    conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge 
    conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
    
    conda config --set show_channel_urls yes
    
  10. 删除添加的国内源,恢复默认源
    conda config --remove-key channels
  11. 新建 conda 环境
    conda create -n your_env_name python=3.7.3 新建
    conda create -n your_env_name --clone base 复制 base 环境
  12. 删除 conda 环境
    conda remove -n your_env_name --all
  13. 查看 revision
    conda list --revision
  14. 回退到 revision
    conda install --rev 2
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值