In this tutorial, we will show you how to install Anaconda on Ubuntu 20.04 LTS. For those of you who didn’t know, Anaconda is a popular Python/R data science and machine learning platform, used for large-scale data processing, predictive analytics, and scientific computing.
This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo
‘ to the commands to get root privileges. I will show you the step-by-step installation of Anaconda on an Ubuntu 20.04 Focal Fossa server.
Prerequisites
- A server running one of the following operating systems: Ubuntu 20.04, 18.04, 16.04, and any other Debian-based distribution like Linux Mint.
- It’s recommended that you use a fresh OS install to prevent any potential issues.
- A
non-root sudo user
or access to theroot user
. We recommend acting as anon-root sudo user
, however, as you can harm your system if you’re not careful when acting as the root.
Install Anaconda on Ubuntu 20.04 LTS Focal Fossa
Step 1. First, make sure that all your system packages are up-to-date by running the following apt
commands in the terminal.
sudo apt update sudo apt upgrade sudo apt install libgl1-mesa-glx libegl1-mesa libxrandr2 libxrandr2 libxss1 libxcursor1 libxcomposite1 libasound2 libxi6 libxtst6
Step 2. Installing Anaconda on Ubuntu 20.04.
Find the latest version of Anaconda for Python 3 at the Anaconda Downloads page and download it:
wget -P /tmp https://repo.anaconda.com/archive/Anaconda3-2020.02-Linux-x86_64.sh
After that, verify the data integrity of the script with the sha256sum command:
sha256sum /tmp/Anaconda3-2020.02-Linux-x86_64.sh
Result:
2b9f088b2022edb474915d9f69a803d6449d5fdb4c303041f60ac4aefcc208bb /tmp/Anaconda3-2020.02-Linux-x86_64.sh
Once verified with the sha256sum, run the script to start the installation process:
bash /tmp/Anaconda3-2020.02-Linux-x86_64.sh
To activate the Anaconda installation, you can either close and re-open your shell or load the new PATH environment variable into the current shell session by typing:
source ~/.bashrc
To verify the installation type conda
in your terminal. If you installed Anaconda on a Desktop system, open the Navigator GUI by entering anaconda-navigator
in your terminal:
Congratulations! You have successfully installed Anaconda. Thanks for using this tutorial for installing anaconda python on your Ubuntu 20.04 LTS Focal Fossa. For additional help or useful information, we recommend you to check the official Anaconda website.