Miniconda Python Distribution on Linux
- Posted by: Barbra Lashbrook - January 13, 2021 Back to CIRA Wiki Home
Topic Catagories: Software Installation
Tags: Anaconda, Installation, Linux, Miniconda, Python
These steps are for a user-level installation of the Miniconda Python Distribution on Linux operating systems
- Select an installer from Miniconda Linux installers (unless you have a good reason for a specific version, the latest one is probably the one you want)
wgetorcurlthe installer to your local directory. Ex:wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.shorcurl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh- Run the installation script. Ex:
bash ./Miniconda3-latest-Linux-x86_64.shWhen you do, you’ll get the message “In order to continue the installation process, please review the license agreement. Please, press ENTER to continue”. After pressingENTER, you’ll see the license. Read it or pressq. Then, typeyesto agree. It’ll ask if you want to change the installation path (default is/home/<username>/miniconda3/). You don’t need to. Then, it’ll ask if you want to initialize it. Typeyes. - You can check that your installation worked by opening a terminal and typing
python. You should enter into a terminal python session and see something like the following:[hcronk@gctest01 ~]$ pythonPython 3.8.5 (default, Sep 4 2020, 07:30:14) [GCC 7.3.0] :: Anaconda, Inc. on linuxType "help", "copyright", "credits" or "license" for more information.>>>
To exit this session type
exit()orCtrl+D - Optional step: Miniconda adds (base) to your command line prompt to indicate what environment you are using. To disable, run
conda config --set changeps1 false. - Optional step: If you find that the system-level python installation takes precedence over Miniconda, then open your
~/.bash_profileor~/.bashrcfile, and add the local Miniconda installation path to the beginning of your $PATH environment variable. You can thensourceyour~/.bash_profileor~/.bashrcto put these changes into effect immediately. Otherwise, the next time you login, the changes will be put into effect.