Installing Anaconda in GNU/Linux Mint

Download Miniconda

Download Miniconda for Python version 3 (we would be able to run both Python major versions). The URL for Miniconda download is https://docs.conda.io/en/latest/miniconda.html where you should choose the option for 64-bit Linux.

curro@mint2modesto:~$ cd Downloads
curro@mint2modesto:~/Downloads$ wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
--2020-03-24 19:13:28--  https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
Resolving repo.anaconda.com (repo.anaconda.com)... 104.16.130.3, 104.16.131.3, 2606:4700::6810:8303, ...
Connecting to repo.anaconda.com (repo.anaconda.com)|104.16.130.3|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 85055499 (81M) [application/x-sh]
Saving to: ‘Miniconda3-latest-Linux-x86_64.sh’

Run the installer

curro@mint2modesto:~/Downloads$ bash Miniconda3-latest-Linux-x86_64.sh 

Welcome to Miniconda3 4.8.2

In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>> 

Accept the default installation directory /home/curro/Miniconda3 and let the installer initialize Miniconda3.

Open a new terminal and it will have the base environment activated. Update conda in this new terminal

Create Python 2 and Python 3 environments.

Now we proceed to create a Python 2 and a Python 3 environment.

The Python 2 environment is created in the same way.

Installing software in a given environment

Your first jupyter notebook

You can launch a notebook with the command

By default you can only access notebooks and directories below the folder from which you run the jupyter notebook command, but not files above this folder. You can alter this default behavior and other jupyter default config options editing the application config file as in the following example.

You first generate a config file for your notebooks

This file contains the default configuration of jupyter. In order to create a folder and make this directory the default working directory for our notebooks, you can proceed as follows (not recommended unless you are positive all of your notebooks will be contained in this folder and its subfolders

You should then open the jupyter_notebook_config.py file in a text editor and replace the line

by

Keeping your Anaconda install updated

The most important command in this case is

This will update all packages in the current environment. You can also update a selected package or packages (and dependencies) as follows

Again this will only affect the current environment.

Last updated

Was this helpful?