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.
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.
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
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
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.
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.
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.
You can now activate the installation with the following command:
source ~/.bashrc
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.
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.
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