How to install anaconda on an Ubuntu server

Posted on August 20, 2020
Tags: python, bash

Collection of commands to install the Anaconda Python distribution (version Anaconda3-2020.07-Linux-x86_64) on an Ubuntu 20.04 server

Install the convenience script

curl -O

in the install process you get asked for the path to the installation folder. I usually pick /usr/local/bin/anaconda3.

Create group to manage multi user usage

sudo groupadd anaconda
sudo chgrp -R anaconda /usr/local/bin/anaconda3
sudo chmod g+s -R anaconda3/

Add anaconda to the path

use something like

echo "export PATH=/usr/local/bin/anaconda3/bin/:\$PATH" >> .bashrc.d/path.bash