Select Page

Advent

Designed for knowledge science and system finding out workflows, Anaconda is an open-source bundle supervisor, atmosphere supervisor, and distribution of the Python and R programming languages.

This educational will information you thru putting in Anaconda on an Ubuntu 18.04 server. For a extra detailed model of this educational, with higher explanations of each and every step, please confer with How To Install the Anaconda Python Distribution on Ubuntu 18.04

Step 1 — Retrieve the Newest Model of Anaconda

From a internet browser, move to the Anaconda Downloads page, to be had by way of the next hyperlink:

https://www.anaconda.com/obtain/

In finding the newest Linux model and duplicate the installer bash script.

Step 2 — Obtain the Anaconda Bash Script

Logged into your Ubuntu 18.04 server as a sudo non-root consumer, transfer into the /tmp listing and use curl to obtain the hyperlink you copied from the Anaconda web site:

  • cd /tmp
  • curl -O https://repo.anaconda.com/archive/Anaconda3-5.1.0-Linux-x86_64.sh

Step 3 — Test the Information Integrity of the Installer

Make certain the integrity of the installer with cryptographic hash verification thru SHA-256 checksum:

  • sha256sum Anaconda3-5.1.0-Linux-x86_64.sh

Output

7e6785caad25e33930bc03fac4994a434a21bc8401817b7efa28f53619fa9c29 Anaconda3-5.1.0-Linux-x86_64.sh

Step 4 — Run the Anaconda Script

  • bash Anaconda3-5.1.0-Linux-x86_64.sh

You’ll obtain the next output to check the license settlement by way of urgent ENTER till you succeed in the top.

Output

Welcome to Anaconda3 5.1.0 To be able to proceed the set up procedure, please assessment the license settlement. Please, press ENTER to proceed >>> ... Do you approve the license phrases? [yes|no]

While you get to the top of the license, kind sure so long as you conform to the license to finish set up.

Step 5 — Entire Set up Procedure

When you conform to the license, you’re going to be caused to make a choice the site of the set up. You’ll be able to press ENTER to simply accept the default location, or specify a distinct location.

Output

Anaconda3 will now be put in into this location: /house/sammy/anaconda3 - Press ENTER to verify the site - Press CTRL-C to abort the set up - Or specify a distinct location under [/house/sammy/anaconda3] >>>

At this level, the set up will continue. Be aware that the set up procedure takes a while.

Step 6 — Make a choice Choices

As soon as set up is entire, you’ll obtain the next output:

Output

... set up completed. Do you want the installer to prepend the Anaconda3 set up location to PATH to your /house/sammy/.bashrc ? [yes|no] [no] >>>

It’s endorsed that you just kind sure to make use of the conda command.

Subsequent, you’re going to be caused to obtain Visible Studio Code, which you’ll be able to be informed extra about from the official VSCode website.

Sort sure to put in and no to say no.

Step 7 — Turn on Set up

You’ll be able to now turn on the set up with the next command:

Step 8 — Check Set up

Use the conda command to check the set up and activation:

You’ll obtain output of all of the applications you’ve got to be had in the course of the Anaconda set up.

Step 9 — Set Up Anaconda Environments

You’ll be able to create Anaconda environments with the conda create command. For instance, a Python Three atmosphere named my_env can also be created with the next command:

  • conda create --name my_env python=3

Turn on the brand new atmosphere like so:

Your command recommended prefix will alternate to mirror that you’re in an lively Anaconda atmosphere, and also you at the moment are able to start out paintings on a mission.

Listed here are hyperlinks to extra detailed tutorials which might be associated with this information: