YouTube Icon

Code Playground.

How to Install Anaconda on CentOS 8

CFG

How to Install Anaconda on CentOS 8

Boa constrictor is the most well known Python/R information science and AI stage. It is utilized for huge scope information handling, prescient investigation, and logical figuring. 

Boa constrictor appropriation ships with in excess of 1,500 open-source information bundles. It additionally incorporates the conda order line apparatus and a work area graphical UI called Anaconda Navigator. 

In this instructional exercise, we will disclose how to introduce Anaconda Python Distribution on CentOS 8. 

Installing Anaconda

At the hour of composing this article, the most recent stable rendition of Anaconda is variant 2019.10. Before downloading the Anaconda installer content, visit the Anaconda Downloads page and check if there is another adaptation of Anaconda for Python 3 accessible for download. 

Complete the accompanying strides to introduce Anaconda on CentOS 8: 

Download the Anaconda establishment content utilizing the connection that you duplicated from the Downloads page: 

wget -P /tmp https://repo.anaconda.com/archive/Anaconda3-2019.10-Linux-x86_64.sh

The download may take some time contingent upon your association speed. 

On the off chance that you are introducing Anaconda on a Desktop machine, you can download the content utilizing your internet browser . 

Check the information respectability of the content with the sha256sum order: 

sha256sum Anaconda3-5.3.1-Linux-x86_64.sh

The yield should resemble the accompanying: 

46d762284d252e51cd58a8ca6c8adc9da2eadc82c342927b2f66ed011d1d8b53  /tmp/Anaconda3-2019.10-Linux-x86_64.sh

Ensure the hash printed from the order above matches the one accessible at the Anaconda with Python 3 on 64-digit Linux page for your suitable Anaconda variant. 

Start the Anaconda establishment measure by executing the establishment content: 

bash Anaconda3-2019.10-Linux-x86_64.sh

You should see a yield like the accompanying: 

Welcome to Anaconda3 2019.10

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

Press ENTER to proceed, and afterward press ENTER to look through the permit. You'll be approached to favor the permit terms: 

Do you accept the license terms? [yes|no]
[no] >>> yes

Type yes to acknowledge the permit and the installer will request that you pick the establishment area: 

Anaconda3 will now be installed into this location:
/home/linuxize/anaconda3

- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specify a different location below

The default area is fine for most clients. Press ENTER to affirm the area and establishment cycle will proceed. 

In the event that you get a blunder saying bunzip2: order not found, introduce the bzip2 bundle with: sudo dnf introduce bzip2, and re-run the establishment content 

The establishment may set aside some effort to finish. When done, you'll see the accompanying yield: 

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

Type indeed, press ENTER and the content will add conda to your PATH : 

==> 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 actuate the Anaconda establishment, you can either close and re-open your shell or burden the new PATH climate variable into the current shell meeting by composing: 

source ~/.bashrc

Utilize the conda order to check the Anaconda establishment. The accompanying order will show data about the establishment: 

conda info
    active environment : base
    active env location : /home/vagrant/anaconda3
            shell level : 1
    user config file : /home/vagrant/.condarc
populated config files : 
        conda version : 4.7.12
    conda-build version : 3.18.9
        python version : 3.7.4.final.0
    ...

Updating Anaconda

Refreshing the Anaconda is a pretty straight forward cycle, first update the conda apparatus with: 

conda update conda

When incited to affirm the update, type y to continue. 

Once conda is refreshed, continue with the Anaconda update: 

conda update anaconda

Same similarly as with the past order, when provoked, type y to continue. 

Remember to consistently refresh your Anaconda establishment. 

Uninstalling Anaconda

To uninstall Anaconda from your CentOS framework, first eliminate the Anaconda establishment index: 

rm -rf ~/anaconda3

Alter the ~/.bashrc document and eliminate the Anaconda registry from the PATH climate variable: 

~/.bashrc

# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/home/linuxize/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
    eval "$__conda_setup"
else
    if [ -f "/home/linuxize/anaconda3/etc/profile.d/conda.sh" ]; then
        . "/home/linuxize/anaconda3/etc/profile.d/conda.sh"
    else
        export PATH="/home/linuxize/anaconda3/bin:$PATH"
    fi
fi
unset __conda_setup
# <<< conda initialize <<<

Run the accompanying rm order to eliminate the concealed documents and organizers from the client home registry: 

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

Conclusion

Since you have downloaded and introduced Anaconda your CentOS framework, you can check the authority Getting begun with conda control. 

In the event that you hit an issue or have criticism, leave a remark beneath.




CFG