Install Anaconda on Ubuntu (or Linux) via command line

JNevens picture JNevens · Mar 4, 2015 · Viewed 26.5k times · Source

I would like to install Anaconda on a remote server.

The server is running Ubuntu 12.04.

I only have access to this server via SSH.

How can I install Anaconda via the command line?

Answer

kmario23 picture kmario23 · Feb 17, 2017

Please take a look at the Anaconda repo archive page and select an appropriate version that you'd like to install.

After that, just do:

 # replace this `Anaconda3-version.num-Linux-x86_64.sh` with your choice
~$ wget -c https://repo.continuum.io/archive/Anaconda3-vers.num-Linux-x86_64.sh
~$ bash Anaconda3-version.num-Linux-x86_64.sh

Concrete Example:

As of this writing, Anaconda3-2020.07 is the latest version. So,

~$ wget -c https://repo.anaconda.com/archive/Anaconda3-2020.07-Linux-x86_64.sh
~$ bash Anaconda3-2020.07-Linux-x86_64.sh

P.S. Based on comments, this should also work in CentOS systems.