• 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 CentOS 8

Written by Admin, Updated On May 10, 2020
anaconda, centos
How to Install Anaconda on CentOS 8

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

Prerequisites#

Before you start installation, you should logged in as a root or user with sudo privileges.

Installing Anaconda#

The latest stable version of Anaconda is version 2020.02 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-2020-02

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

Step 1 – Download Anaconda#

At first, navigate to /tmp directory by typing:

cd /tmp

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

wget –P ~/Downloads https://repo.anaconda.com/archive/Anaconda3.2020.02-Linux-x86_64.sh

It may take few minutes to complete download.

Step 2 – Verify Data Integrity#

After that verify the data integrity of the Script using sha256sum command:

sha256sum Anaconda3.2020.02-Linux-x86_64.sh

It should return output as below:

2b9f088b2022edb474915d9f69a803d6449d5fdb4c303041f60ac4aefcc208bb

Ensure that above hash should matches with hash available at Anaconda hashes page.

anaconda-hashes

Step 3 – Install Anaconda Package#

Now run the Anaconda installation script to start installation process:

bash Anaconda3-2020.02-Linux-x86_64.sh

It should return output as given below:

Welcome to Anaconda3 2020.02
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.

Once installation finishes, you’ll see the following output:

Preparing transaction: done
Executing transaction: done
installation finished.
Do you wish the installer to initialize Anaconda3
by running conda init? [yes|no]

This adjusts the PATH variable so that Anaconda works from any directory on your system. Type yes, then Enter.

Once the installation is finished, you will see thank you message.

==> For changes to take effect, close and re-open your current shell. <==
If you'd prefer that conda's base environment not be activated on startup,
set the auto_activate_base parameter to false:
conda config --set auto_activate_base false
Thank you for installing Anaconda3!

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

source ~/.bashrc

Step 4 – Verify Installation#

Use conda command to verify the installation:

conda info
active environment : base
    active env location : /home/tecnstuff/anaconda3
            shell level : 1
    user config file : /home/tecnstuff/.condarc
populated config files :
        conda version : 4.8.2
    conda-build version : 3.18.11
        python version : 3.7.6.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
     ...

That’s it! Anaconda is installed on your CentOS system.

Update Anaconda#

It’s very simple and easy to update Anaconda. You can regularly update the Anaconda using below command.

At first, update the conda tool by typing:

conda update conda

It will prompt 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, system prompts, type y to proceed. It’s best practice to regularly update your Anaconda installation.

Uninstall Anaconda#

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

Anaconda includes a simple utility to remove the software from your system. Install the removal software by entering the following:

conda install anaconda-clean

It will prompt you to confirm, press y and hit Enter key.

Once the anaconda-clean utility is installed, you can use it to remove Anaconda from your system completely:

anaconda-clean ––yes

The --yes flag confirms for each deletion request. You can remove this option if you want to confirm file deletion manually.

Conclusion#

It’s very simple process to download and install Anaconda on your CentOS 8 system. Learn more about Anaconda at Official conda guide.

If you have any question or feedback, please leave a 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 Set Up SSH Keys on CentOS 8
Next Article   How to Set Up Nginx Server Blocks on Ubuntu 20.04

Related Posts

  • How to Install Php 8 on CentOS 8

    How to Install PHP 8 on CentOS 8

    January 27, 2021
  • How to Install Python 3.9 on CentOS 8

    How to Install Python 3.9 on CentOS 8

    December 31, 2020
  • How to Install GIMP 2.10 on CentOS 8

    How to Install GIMP 2.10 on CentOS 8

    December 30, 2020

Leave a Reply Cancel reply

DigitalOcean Referral Badge

Popular Posts

  • How to Install SSH Keys on Ubuntu 22.04
    How to Set up SSH Keys on Ubuntu 22.04 January 7, 2023
  • How to Install Mongodb on Debian 11
    How to Install MongoDB on Debian 11 Linux January 11, 2023
  • How to Install Puppet Agent on Ubuntu 22.04
    How to Install Puppet Agent on Ubuntu 22.04 January 22, 2023
  • How to Install Jenkins on Debian 11
    How to Install Jenkins on Debian 11 January 5, 2023
  • How to Change-Hostname Ubuntu 22.04
    How to Change Hostname on Ubuntu 22.04 January 19, 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