🛠️Install Miniconda/Anaconda
⚠️The insutructions below are more suitable for Chinese. If you are not, you may find proper tutorial in the references.
Insutructions
To download the installer, open a terminal and use the following command, depending on your Linux architecture:
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.shTo install, run the following command
bash Miniconda3-latest-Linux-x86_64.shPress Enter to review the license agreement. Then press and hold Enter to scroll.
Enter
yesto agree to the license agreement.Use Enter to accept the default install location. If you accept the default install location, the Miniconda will be installed in
/home/<USER>/miniconda3. The following figure shows the successful installation.
successful installation NOTE: Miniconda recommends you accept the default install location. Do not choose the path as
/usrfor the Anaconda/Miniconda installation.After installation, entering “yes” to initialize Miniconda Distribution.
If you enter “no”, then conda will not modify your shell scripts at all. In order to initialize conda after the installation process is done, run the following commands:
# Replace <PATH_TO_CONDA> with the path to your conda install source <PATH_TO_CONDA>/bin/activate conda init
successfully initialized Close and re-open your terminal window for the installation to take effect, or enter the command
source ~/.bashrcto refresh the terminal.You can also control whether or not your shell has the base environment activated each time it opens.
# The base environment is activated by default conda config --set auto_activate_base True # The base environment is not activated by default conda config --set auto_activate_base False # The above commands only work if conda init has been run first # conda init is available in conda versions 4.6.12 and laterverify your installation by using
conda -Vand the corresponding version of miniconda will be returned if successfully installed.
Additions
To create a new environment by conda, using
conda create -n <your environment name> [python=<version>]and useconda activate <your environment name>to activate.use
conda deactivate <your environment name>to deactivate and useconda remove -n <your environment name> --allto delete
References
Miniconda
In Chinese: Linux系统miniconda安装流程
Anaconda
In Chinese: 如何在Linux服务器上安装Anaconda(超详细) 原创
In Ehglish: Installing on Linux — Anaconda documentation
Last updated