在 Linux 上安装#

Installing on Linux

  1. 下载安装程序:

  2. 校验安装程序哈希值

  3. 在终端窗口中运行以下命令:

    bash <conda-installer-name>-latest-Linux-x86_64.sh
    

    conda-installer-name 可能是 "Miniconda3"、"Anaconda" 或 "Miniforge3" 中的一个。

  4. 按照安装程序界面中的提示操作。如果对某项设置不确定,可直接接受默认值。之后也可以进行更改。

  5. 为使更改生效,请关闭并重新打开你的终端窗口。

  6. 测试 conda 是否安装成功。在终端中运行命令 conda list。 如果安装正确,将会列出已安装的软件包。

  1. Download the installer:

  2. Verify your installer hashes.

  3. In your terminal window, run:

    bash <conda-installer-name>-latest-Linux-x86_64.sh
    

    conda-installer-name will be one of "Miniconda3", "Anaconda", or "Miniforge3".

  4. Follow the prompts on the installer screens. If you are unsure about any setting, accept the defaults. You can change them later.

  5. To make the changes take effect, close and then re-open your terminal window.

  6. Test your installation. In your terminal window, run the command conda list. A list of installed packages appears if it has been installed correctly.

使用 fish shell#

Using with fish shell

要在 fish shell 中使用 conda,请在终端中执行以下命令:

将 conda 可执行路径添加至 $PATH (如果尚未添加):

fish_add_path <conda-install-location>/condabin

配置 fish shell 支持:

conda init fish

To use conda with fish shell, run the following in your terminal:

Add conda binary to $PATH, if not yet added:

fish_add_path <conda-install-location>/condabin

Configure fish-shell:

conda init fish

静默安装#

Installing in silent mode

请参阅 在 macOS 上以静默模式安装 的说明。

See the instructions for installing in silent mode on macOS.

更新 conda#

Updating conda

  1. 打开1个终端创窗口.

  2. 运行 conda update conda.

  1. Open a terminal window.

  2. Run conda update conda.

卸载 conda#

Uninstalling conda

  1. 打开一个终端窗口。

  2. 删除整个 conda 安装目录(路径可能根据你的安装位置有所不同):

    rm -rf ~/conda
    
  3. 可选项:运行 conda init --reverse --all,以撤销对 shell 初始化脚本所做的更改。

  4. 可选项:删除可能已创建在主目录中的以下隐藏文件和文件夹:

    • .condarc 文件

    • .conda 目录

    • .continuum 目录

    可通过以下命令统一删除:

    rm -rf ~/.condarc ~/.conda ~/.continuum
    
  1. Open a terminal window.

  2. Remove the entire conda install directory with (this may differ depending on your installation location)

    rm -rf ~/conda
    
  3. Optional: run conda init --reverse --all to undo changes to shell initialization scripts

  4. Optional: remove the following hidden file and folders that may have been created in the home directory:

    • .condarc file

    • .conda directory

    • .continuum directory

    By running:

    rm -rf ~/.condarc ~/.conda ~/.continuum