• Home
  • Linux
  • Ubuntu
  • Debian
  • CentOS
  • Linux Commands
  • About Us
  • Donate
TecNStuff
Menu
  • Home
  • Linux
  • Ubuntu
  • Debian
  • CentOS
  • Linux Commands
  • About Us
  • Donate

How to Install Anaconda on Debian 10

Written by Admin, Updated On May 7, 2020
anaconda, debian
How to Install Anaconda on Debian 10

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. This tutorial describes how to install Anaconda on Debian 10 machine.

Prerequisites#

Before you starting installation on Debian 10, you should logged in as a non-root user with sudo privileges.

Installing 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.

anaconda download page

Follow the below steps to download and install Anaconda on you Debian system:

At first, navigate to /tmp directory by typing:

cd /tmp

Now you can download Anaconda installation script using wget or curl command:

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

It will take few minutes to complete download.

After that verify the Data Integrity of the Script using sha256sum command:

sha256sum Anaconda3-2019.03-Linux-x86_64.sh

It should return output as below:

09f53738b0cd3bb96f5b1bac488e5528df9906be2480fe61df40e0e0d19e3d48  Anaconda3-2019.03-Linux-x86_64.sh

Ensure that above hash should matches with hash available at Anaconda with Python 3 on 64 bit Linux page

anaconda hash

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

Press ENTER key to continue and press ENTER again to scroll through the license. At last, you will be asked to accept the license terms.

Do you approve the license terms? [yes|no]

You should type yes to accept the license and you will be asked to choose the installation directory.

Anaconda3 will now be installed into this location:
/home/tecnstuff/anaconda3
    - Press ENTER to confirm the location
    - Press CTRL-C to abort the installation
    - Or specify a different location below

It’s better to set default location so just press ENTER to confirm the location and continue installation process.

Installation finished.
Do you wish the installer to prepend the Anaconda3 install location
to PATH in your /home/tecnstuff/.bashrc ? [yes|no]

If you want to use command line utility conda then type yes and press ENTER after this you will get output like below:

Appending source /home/tecnstuff/anaconda3/bin/activate to /home/tecnstuff/.bashrc
A backup will be made to: /home/tecnstuff/.bashrc-anaconda3.bak
For this change to become active, you have to open a new terminal.
Thank you for installing Anaconda3!

It will ask to you whether you would like to download and install Visual Studio Code Editor.

Anaconda is partnered with Microsoft! Microsoft VSCode is a streamlined
code editor with support for development operations like debugging, task
running and version control.

To install Visual Studio Code, you will need:
    - Administrator Privileges
    - Internet connectivity

Visual Studio Code License: https://code.visualstudio.com/license

Do you wish to proceed with the installation of Microsoft VSCode? [yes|no]

If you want to install Visual Studio Code type yes otherwise type no.

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/tecnstuff/.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/tecnstuff/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/tecnstuff/anaconda3/pkgs
                        /home/tecnstuff/.conda/pkgs
    envs directories : /home/tecnstuff/anaconda3/envs
                        /home/tecnstuff/.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

Update Anaconda#

To update Anaconda is very easy and simple. You can regularly update the Anaconda using below command.

At first, update the conda tool by typing:

conda update conda

You will be prompted to confirm update, type y to proceed ahead.

Once conda is updated, proceed with the Anaconda update:

conda update anaconda

Same as with the previous command, when prompted, type y to proceed. You should regularly update your Anaconda installation.

Uninstall Anaconda#

You can uninstall Anaconda from your Debian system using below steps:

Run the below command to remove the entire Anaconda installation directory:

rm -rf ~/anaconda3

After that you have to edit the ~/.bashrc file and remove the Anaconda directory from the PATH environment variable:

# added by Anaconda3 installer
export PATH="/home/tecnstuff/anaconda3/bin:$PATH"

At last, run the following command to remove hidden files and folders which are created during installation.

rm -rf ~/.condarc ~/.conda ~/.continuum

Conclusion#

You have downloaded and installed Anaconda on your Debian 10 system. If you want more details about Anaconda you can learn at Official Getting started with conda guide.

If you have any question or suggestion, please leave comment below.

If our content helps you, please consider buying us a coffee

Thank you for your support.

Share On
Share on Facebook
Share on Twitter
Share on Reddit
Share on Tumblr
 Previous Article How to Install Atom Text Editor on CentOS 7
Next Article   How to Install Composer on Ubuntu 18.04

Related Posts

  • How to Install WordPress with Nginx on Debian 11

    How to Install WordPress with Nginx on Debian 11

    March 22, 2023
  • How to Install and Use Docker on Debian 11

    How to Install and Use Docker on Debian 11

    March 10, 2023
  • How to Install MariaDB on Debian 11 Bullseye

    How to Install MariaDB on Debian 11 Bullseye

    March 8, 2023

Leave a Reply Cancel reply

DigitalOcean Referral Badge

Popular Posts

  • How to Install Microsoft Edge Browser on Ubuntu 22.04
    How to Install Microsoft Edge Browser on Ubuntu 22.04 March 14, 2023
  • How to Install Ruby on Ubuntu 22.04 LTS
    How to Install Ruby on Ubuntu 22.04 LTS February 27, 2023
  • How to Install PHP 8.2 on Debian 11
    How to Install PHP 8.2 on Debian 11 Linux February 24, 2023
  • How to Install LEMP Stack on Ubuntu 22.04
    How to Install LEMP Stack on Ubuntu 22.04 March 18, 2023
  • How to Install Set Up Apache Virtual Hosts on Ubuntu 22.04
    How to Set Up Apache Virtual Hosts on Ubuntu 22.04 March 2, 2023
© 2020 TecNStuff All rights reserved. This website is using and storing cookies on your browser. By using this website you agree our Privacy Policy.  Follow us -  Twitter | Facebook