Install Anaconda3 environment in Ubuntu18.04

 What is Conda

Conda is an open source package management system and environment management system for installing multiple versions of packages and their dependencies, and switching between them easily. Conda was created for Python programs and is available on Linux, OS X, and Windows, as well as packaging and distributing other software. Conda is the most popular Python environment management tool, and Conda tools are included in distributions such as Anaconda and Miniconda.

Anaconda refers to an open source Python distribution, which contains more than 180 scientific packages such as Conda and Python and their dependencies, so the download file of Anaconda is relatively large (about 531 MB). If you only need certain packages, or use Conda quickly, you can also use Miniconda, a smaller distribution that only includes Conda and Python.

What does Conda do?

Python has gradually become one of the most popular programming languages, and the Python language is even more mainstream in data analysis, machine learning, and deep learning. There are many versions of Python, and its libraries are also very extensive. At the same time, there are many dependencies between libraries, so it is very troublesome to install libraries and manage versions. It will be very convenient to use Conda to manage the environment and version of Python.

How to install Anaconda3

You can go directly to the Anaconda official website ( https://www.anaconda.com/products/individual ) to download the latest version of the installation package. Here you need to choose the linux x86 64bit version. The specific version can be selected according to your own situation. Of course, you can also manually download an older Anaconda version, download address ( https://repo.anaconda.com/archive/ ).

After the download is complete, I got the installation package named Anaconda3-2021.11-Linux-x86_64.sh. I need to enter the linux command terminal to grant read and write permissions to this file.

sudo chmod 775 Anaconda3-2021.11-Linux-x86_64.sh

Then execute the above file and follow the prompts to automatically

bash Anaconda3-2021.11-Linux-x86_64.sh

The above will install Anaconda3 to the anaconda3 folder in the user directory by default, and automatically write the conda initialization environment variables into .bashrc. You can also manually add the conda installation path to the environment variable, as follows.

#用vim打开~/.bashrc文件,并在文件末尾添加如下语句保存退出即可
export PATH=$PATH:~/anaconda3/bin

You can use the following command to check whether the installation was successful.

conda --version

Guess you like

Origin blog.csdn.net/m0_68732180/article/details/130252021