How to install Anaconda on Ubuntu 18.04 [Quick Start]

Introduction

Anaconda is designed for data science and machine learning workflows. It is an open source package manager, environment manager, and is responsible for the distribution of Python and R programming languages.

This tutorial will guide you to install Anaconda on Ubuntu 18.04 server. For a more detailed version of this tutorial, and a better description of each step, please refer to How to install Anaconda Python distribution on Ubuntu 18.04

To complete this tutorial, you need to have a server. Those who don’t have a server can buy it from here, but I personally recommend you to use the free Tencent Cloud Developer Lab Experiment, learn to install and then Purchase Server.

Step 1-Retrieve the latest version of Anaconda

In a web browser, go to Anaconda download page, which can be accessed through the following link:

https://www.anaconda.com/download/

Find the latest Linux version and copy the installer bash script.

Step 2-Download Anaconda Bash script

Log in to your Ubuntu 18.04 server as a sudo non-root user, enter the /tmp directory and use curl to download the link you copied from the Anaconda website:

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

Step 3-Verify the data integrity of the installer

Through SHA-256 checksum and encrypted hash verification to ensure the integrity of the installation program:

sha256sum Anaconda3-5.2.0-Linux-x86_64.sh

The output is as follows:

09 f53738b0cd3bb96f5b1bac488e5528df9906be2480fe61df40e0e0d19e3d48  Anaconda3-5.2.0-Linux-x86_64.sh

Step 4-Run Anaconda script

bash Anaconda3-5.2.0-Linux-x86_64.sh

You will receive the following output to view the license agreement, press the ENTER key until you reach the end.

Welcome to Anaconda3 5.2.0
​
In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue>>>...
Do you approve the license terms?[yes|no]

When you reach the end of the license, you can enter yes as long as you agree to the completed installation of the license.

Step 5-Complete the installation process

Once you agree to the license, you will be prompted to choose an installation location. You can press ENTER to accept the default location, or specify another location.

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

At this point, the installation will continue. Please note that the installation process takes some time.

Step 6-select options

After the installation is complete, you will receive the following output:

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

It is recommended that you enter yes to use the conda command.

Next, the system will prompt you to download Visual Studio Code, you can learn more from Official VSCode website.

Enter yes to install and no to refuse to install.

Step Seven-Activate Installation

You can now activate the installation with the following command:

source ~/.bashrc

Step 8-Test Installation

Use this conda command to test the installation and activation:

conda list

You will receive the output of all packages available through the Anaconda installation.

Step 9-Set up Anaconda environment

You can use the conda create command to create an Anaconda environment. For example, you can use the following command to create a Python 3 environment named my_env:

conda create --name my_env python=3

Activate the new environment like this:

source activate my_env

Your command prompt prefix will change to reflect that you are in an active Anaconda environment, and now you are ready to start working on the project.

Related tutorials

Here are links to more detailed tutorials related to this guide:

To learn more about Linux open source information tutorial, please go to [Tencent Cloud + Community] (https://cloud.tencent.com/developer?from=10680) to learn more.

Reference: "How To Install Anaconda on Ubuntu 18.04 [Quickstart]"

Recommended Posts

How to install Anaconda on Ubuntu 18.04 [Quick Start]
How to install Git on Ubuntu 18.04 [Quick Start]
How to install Anaconda3 on Ubuntu 18.04
How to install Anaconda on Ubuntu 20.04
[Quick Start] How to install Apache web server on Ubuntu 18.04
How to install Ruby on Ubuntu 20.04
How to install Memcached on Ubuntu 20.04
How to install MySQL on Ubuntu 20.04
How to install VirtualBox on Ubuntu 20.04
How to install Protobuf 3 on Ubuntu
How to install Nginx on Ubuntu 20.04
How to install Apache on Ubuntu 20.04
How to install Git on Ubuntu 20.04
How to install Node.js on Ubuntu 16.04
How to install MySQL on Ubuntu 20.04
How to install Vagrant on Ubuntu 20.04
How to install Bacula-Web on Ubuntu 14.04
How to install PostgreSQL on Ubuntu 16.04
How to install Git on Ubuntu 20.04
How to install Memcached on Ubuntu 18.04
How to install MemSQL on Ubuntu 14.04
How to install Go on Ubuntu 20.04
How to install MongoDB on Ubuntu 16.04
How to install Mailpile on Ubuntu 14.04
How to install PrestaShop on Ubuntu 16.04
How to install Skype on Ubuntu 20.04
How to install Jenkins on Ubuntu 20.04
How to install Python 3.8 on Ubuntu 18.04
How to install KVM on Ubuntu 18.04
How to install KVM on Ubuntu 20.04
How to install opencv3.0.0 on ubuntu14.04
How to install Prometheus on Ubuntu 16.04
How to install Jenkins on Ubuntu 18.04
How to install Apache on Ubuntu 20.04
How to install R on Ubuntu 20.04
How to install Moodle on Ubuntu 16.04
How to install Solr 5.2.1 on Ubuntu 14.04
How to install Teamviewer on Ubuntu 16.04
How to install MariaDB on Ubuntu 20.04
How to install Nginx on Ubuntu 20.04
How to install Mono on Ubuntu 20.04
How to install Go on Ubuntu 20.04
How to install Zoom on Ubuntu 20.04
How to install Nginx on Ubuntu 16.04
How to install OpenCV on Ubuntu 20.04
How to install Spotify on Ubuntu 20.04
How to install Postman on Ubuntu 18.04
How to install Go 1.6 on Ubuntu 16.04
How to install Go on Ubuntu 18.04
How to install MySQL on Ubuntu 14.04
How to install PostgreSQL on Ubuntu 20.04
How to install VLC on Ubuntu 18.04
How to install TeamViewer on Ubuntu 20.04
How to install Webmin on Ubuntu 20.04
How to install Docker Compose on Ubuntu 18.04
How to install Ubuntu on Raspberry Pi
How to install Bacula Server on Ubuntu 14.04
How to install MySQL on Ubuntu 18.04 (linux)
How to install Ubuntu 19.10 on Raspberry Pi 4
How to install Apache Kafka on Ubuntu 18.04
How to install Apache Tomcat 8 on Ubuntu 16.04