Conda Install

推荐使用miniconda(或者miniforge, 是开源版本, 没有商用风险). 相较于anaconda, 这个的base环境比较小, 只有一些必要的packages, 减少了空间占用.

安装miniconda:

  1. 下载安装程序(注意OS版本): wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
  2. 添加运行权限: chmod +x Miniconda3-latest-Linux-x86_64.sh
  3. 运行程序: sh Miniconda3-latest-Linux-x86_64.sh
    • 这里需要翻页到最下面, 然后手动输入yes以同意许可证. 这里注意不要按住enter翻页(或者按的速度过快), 可能会直接走默认的no导致结束安装

安装结束之后, 需要让Shell知道conda环境, 使用conda init <shell>对shell的config进行更新.

fish shell

使用conda+fish shell的时候会有很多的bug, 因为fish shell不支持原生的bash语法.

如, conda activate之后的status不是0, 无法使用source activate, 等