In this tutorial, we will show you how to install Anaconda on Debian 10 Buster. For those of you who didn’t know, Anaconda is a totally free, easy-to-install open source Program manager, environment manager, and Python distribution with a collection of 1,000+ open source packages with free community support and is commonly used for large-scale Information processing, scientific computing, and predictive analytics, and serving data scientists, Programmers, business analysts, and People Operating in DevOps.
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 through the step-by-step installation of Anaconda Python on a Debian 10 (Buster) server.
Install Anaconda on Debian 10 Buster
Step 1. Before we install any software, it’s important to make sure your system is up to date by running the following apt
commands in the terminal:
sudo apt update sudo apt upgrade
Step 2. Installing Anaconda on Debian.
First, download the Anaconda installer script, visit the Anaconda Downloads page and check if there is a new version of Anaconda for Python 3 available for download:
wget -P /tmp https://repo.anaconda.com/archive/Anaconda3-2019.10-Linux-x86_64.sh
Once done, verify the data integrity of the script with the sha256sum command:
sha256sum /tmp/Anaconda3-2019.10-Linux-x86_64.sh
Then, run the script to start the Anaconda installation process:
sh /tmp/Anaconda3-2019.10-Linux-x86_64.sh
To activate the Anaconda installation load the new PATH environment variable that was added by the Anaconda installer into the current shell session with the following command:
source ~/.bashrc
To verify that Anaconda was successfully installed using the conda
command:
$ conda info active environment : base active env location : /home/idroot/anaconda3 shell level : 1 user config file : /home/idroot/.condarc populated config files : conda version : 4.7.16 conda-build version : 3.16.9 python version : 3.7.6.final.0 virtual packages : base environment : /home/idroot/anaconda3 (writable) channel URLs : https://repo.anaconda.com/pkgs/main/linux-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/r/linux-64 https://repo.anaconda.com/pkgs/r/noarch package cache : /home/idroot/anaconda3/pkgs /home/idroot/.conda/pkgs envs directories : /home/idroot/anaconda3/envs /home/idroot/.conda/envs platform : linux-64 user-agent : conda/4.7.12 requests/2.22.0 CPython/3.7.4 Linux/4.19.0-5-amd64 debian/10 glibc/2.28 UID:GID : 1000:1000 netrc file : None offline mode : False
Congratulations! You have successfully installed Anaconda. Thanks for using this tutorial for installing the latest version of the Anaconda Python on the Debian 10 server. For additional help or useful information, we recommend you to check the official Anaconda website.