CentOS7 steps to install Anaconda


1. The role of installing Anaconda

Anaconda is a data science and machine learning platform that includes an integrated Python environment and many commonly used data science and machine learning packages. Installing Anaconda can save you the trouble of manually installing Python and various packages, and it can also provide convenient environment management functions.

2. Installation steps

1. Download the installation package

First, download the Anaconda installation package for CentOS 7 from the Anaconda official website. It can be downloaded in the terminal using the wget command, for example:

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

2. Execute the script

After the download is complete, enter the directory where the package is located in the terminal and execute the following command:

bash Anaconda3-2021.05-Linux-x86_64.sh

3. Follow the prompts to install

Then, follow the prompts to install. Some information needs to be entered during the installation process, such as the installation path, whether to add Anaconda to the PATH environment variable, and so on.

4. Activate the Anaconda environment

After the installation is complete, the Anaconda environment needs to be activated. Enter the following command in the terminal:

source ~/anaconda3/bin/activate

5. Verify that Anaconda is installed correctly

Finally, you can verify that Anaconda was installed correctly. Enter the following command in the terminal:

conda --version

If the version number of Anaconda is displayed, Anaconda installed successfully.

Note: Before using Anaconda, it is best to update the package manager pip that comes with conda and Anaconda, you can use the following command:

conda update conda
conda update anaconda
pip install --upgrade pip

Tip: For more content, please visit Clang's Blog: https://www.clang.asia

Guess you like

Origin blog.csdn.net/u012899618/article/details/129393709