How to Install Anaconda Python on Debian 10

Install Anaconda Python on Debian 10

In this article, we will have explained the necessary steps to install Anaconda Python on Debian 10. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.

Anaconda is the most popular, free and open-source distribution of Python and R Programming language. It is used for large-scale data processing, predictive analysis and scientific computing. The Anaconda distribution is used by over 15 million users and includes more than 1500 popular data-science packages.

Install Anaconda Python on Debian 10

Step 1. The first command will update the package lists to ensure you get the latest version and dependencies.

sudo apt update
sudo apt upgrade

Step 2. Install Anaconda.

The latest stable version of Anaconda is version 2019.03 at the time of writing this article. You should visit Anaconda Download Page and check if there is a new version is available for download:

curl -O https://repo.anaconda.com/archive/Anaconda3-2019.03-Linux-x86_64.sh

Check the data integrity of the script by running the sha256sum command:

sha256sum Anaconda3-2019.03-Linux-x86_64.sh

The output should be like:

09f53738b0cd3bb96f5b1bac488e5528df9906be2480fe61df40e0e0d19e3d48  Anaconda3-2019.03-Linux-x86_64.sh

Now run the Anaconda Installation Script to start Anaconda installation process:

bash Anaconda3-2019.03-Linux-x86_64.sh

Output should show as given below:

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

Be patient installation and enter [Yes] if question.

To activate the Anaconda installation load the new PATH environment variable:

source ~/.bashrc

Now verify the installation by typing:

$ conda info
active environment : None
    user config file : /home/linuxtips/.condarc
populated config files :
        conda version : 4.5.4
    conda-build version : 3.10.5
        python version : 3.7.0.final.0
    base environment : /home/linuxtips/anaconda3  (writable)
        channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
                       https://repo.anaconda.com/pkgs/main/noarch
                       https://repo.anaconda.com/pkgs/free/linux-64
                       https://repo.anaconda.com/pkgs/free/noarch
                       https://repo.anaconda.com/pkgs/r/linux-64
                       https://repo.anaconda.com/pkgs/r/noarch
                       https://repo.anaconda.com/pkgs/pro/linux-64
                       https://repo.anaconda.com/pkgs/pro/noarch
        package cache : /home/linuxtips/anaconda3/pkgs
                        /home/linuxtips/.conda/pkgs
    envs directories : /home/linuxtips/anaconda3/envs
                        /home/linuxtips/.conda/envs
            platform : linux-64
            user-agent : conda/4.5.4 requests/2.18.4 CPython/3.6.5 Linux/4.15.0-22-generic debian/9 glibc/2.27
                UID:GID : 1000:1000
            netrc file : None
        offline mode : False

Step 3. Update Anaconda.

Regularly update Anaconda to the latest version by using the following commands:

conda update conda

Once conda is updated, proceed with the Anaconda update:

conda update anaconda

Congratulation, you have learned how to install and configure Anaconda on Debian 10 Buster. If you have any question, please leave a comment below.