📅  最后修改于: 2023-12-03 14:59:14.398000             🧑  作者: Mango
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.
Before starting this guide, you should have the following prerequisites:
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
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.
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
.
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.
To update Anaconda and its packages to the latest version, run the following command:
$ conda update --all
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.