📌  相关文章
📜  anaconda for ubuntu 20.04 - Shell-Bash (1)

📅  最后修改于: 2023-12-03 14:59:14.398000             🧑  作者: Mango

Anaconda for Ubuntu 20.04 - Shell/Bash

Introduction

Anaconda is an open-source distribution of the Python and R programming languages that is used for scientific computing, data processing, and machine learning. It includes several packages and tools for data analysis, such as Jupyter Notebook, Numpy, Pandas, and Matplotlib. In this guide, we will explain how to install Anaconda on Ubuntu 20.04 using Shell/Bash.

Prerequisites

Before starting this guide, you should have the following prerequisites:

  • Ubuntu 20.04 installed
  • Shell/Bash terminal
Step 1: Download Anaconda

The Anaconda installation package can be downloaded from the official Anaconda website. To download the package, run the following command in your terminal:

$ wget https://repo.anaconda.com/archive/Anaconda3-2021.05-Linux-x86_64.sh
Step 2: Verify the Integrity of the Downloaded File

To verify the integrity of the downloaded file, we will compare it with the SHA-256 checksum provided by Anaconda. Run the following command to download the SHA-256 checksum:

$ wget https://repo.anaconda.com/archive/Anaconda3-2021.05-Linux-x86_64.sh.sha256

Next, we will use the sha256sum command to generate the checksum of the downloaded package and compare it with the one provided by Anaconda:

$ sha256sum Anaconda3-2021.05-Linux-x86_64.sh

The output should match the SHA-256 checksum provided by Anaconda.

Step 3: Install Anaconda

To install Anaconda, run the downloaded installation script with bash. This will start the installation process and prompt you with the license agreement, installation location, and other options.

$ bash Anaconda3-2021.05-Linux-x86_64.sh

Follow the prompts to complete the installation process. The default installation location is /home/<username>/anaconda3.

Step 4: Activate the Anaconda Environment

After the installation is complete, you can activate the Anaconda environment by running the following command:

$ source ~/anaconda3/bin/activate

This will activate the base environment, which is the default environment in Anaconda.

Step 5: Update Anaconda

To update Anaconda and its packages to the latest version, run the following command:

$ conda update --all
Conclusion

In this guide, we showed you how to install Anaconda on Ubuntu 20.04 using Shell/Bash. With Anaconda, you can easily manage your Python and R packages and use them for data analysis and machine learning projects.