YouTube Icon

Code Playground.

How to Install Anaconda on Ubuntu 20.04


How to Install Anaconda on Ubuntu 20.04

Boa constrictor is a mainstream Python/R information science and AI stage, utilized for enormous scope information handling, prescient examination, and logical figuring. 

Boa constrictor dispersion ships with 250 open-source information bundles, and beyond what 7,500 extra bundles can be introduced from the Anaconda stores. It likewise incorporates the conda order line instrument and a work area graphical UI called Anaconda Navigator. 

This instructional exercise will walk you through the establishment of Anaconda Python Distribution on Ubuntu 20.04. 

Installing Anaconda

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

Complete the accompanying strides to introduce Anaconda on Ubuntu 20.04: 

Boa constrictor Navigator is a QT-based GUI. In the event that you are introducing Anaconda on a work area machine and you need to utilize the GUI application, introduce the accompanying bundles. Something else, skirt this progression. 

sudo apt install libgl1-mesa-glx libegl1-mesa libxrandr2 libxrandr2 libxss1 libxcursor1 libxcomposite1 libasound2 libxi6 libxtst6

Download the Anaconda establishment content with your internet browser or wget : 

wget -P /tmp

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

This progression is discretionary, however it is prescribed to confirm the information trustworthiness of the content. 

Utilize the sha256sum order to show the content checksum: 

sha256sum /tmp/

The yield should resemble this: 

sha256sum /tmp/

Ensure the hash printed from the order above matches the one accessible at the Anaconda with Python 3 on 64-bit Linux page for your fitting Anaconda rendition. 

2b9f088b2022edb474915d9f69a803d6449d5fdb4c303041f60ac4aefcc208bb  /tmp/

Run the content to begin the establishment cycle: 

bash /tmp/

You should see a yield like the accompanying: 

Welcome to Anaconda3 2020.02

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

Press ENTER to proceed. To look through the permit, utilize the ENTER key. When you're finished evaluating the permit, you'll be approached to endorse the permit terms: 

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

Type yes to acknowledge the permit, and you'll be incited to pick the establishment area: 

Anaconda3 will presently be introduced into this area: 

Anaconda3 will now be installed into this location:

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

The default area ought to be fine for most clients. Press ENTER to affirm the area. 

The establishment may take some time, and once finished, the content will ask you whether you need to run conda init. Type yes. 

Installation finished.
Do you wish the installer to initialize Anaconda3
by running conda init? [yes|no]

This will include the order line apparatus conda to your framework's PATH . 

To enact 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

To confirm the establishment type conda in your terminal. 

That is it! You have effectively introduced Anaconda on your Ubuntu machine, and you can begin utilizing it. 

On the off chance that you introduced Anaconda on a Desktop framework, open the Navigator GUI by entering boa constrictor guide in your terminal: 

Updating Anaconda

Refreshing the Anaconda is a truly straight forward cycle. Open your terminal and enter: 

conda update --all

On the off chance that there are refreshes, conda will show a rundown and brief you to affirm the update: 

The following packages will be UPDATED:

  anaconda-navigator                          1.9.12-py37_0 --> 1.9.12-py37_1
  conda                                        4.8.2-py37_0 --> 4.8.3-py37_0
  conda-package-han~                   1.6.0-py37h7b6447c_0 --> 1.6.1-py37h7b6447c_0

Proceed ([y]/n)? 

It is a smart thought to refresh your Anaconda establishment consistently. 

Uninstalling Anaconda

In the event that you need to uninstall Anaconda from your Ubuntu framework, eliminate the Anaconda establishment catalog and all different documents that have been made during the establishment: 

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

Open the ~/.bashrc document and eliminate the Anaconda catalog from the PATH climate variable: 

# >>> 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"
    if [ -f "/home/linuxize/anaconda3/etc/profile.d/" ]; then
        . "/home/linuxize/anaconda3/etc/profile.d/"
        export PATH="/home/linuxize/anaconda3/bin:$PATH"
unset __conda_setup
# <<< conda initialize <<<


We've told you the best way to introduce Anaconda on Ubuntu 20.04. You should now check the authority Getting begun with conda direct. 

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