Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install Anaconda for Linux

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains how to install Anaconda in Linux. Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's take you to learn "how to install Anaconda Linux"!

Anaconda is a Python distribution for scientific computing, supporting Linux, Mac, Windows systems, providing package management and environment management functions, which can easily solve the coexistence of multiple versions of python, switching and various third-party package installation problems.

Environment linux Ali Cloud Virtual Machine

Download 1. Enter the official website to select the version and operating system to download https://www.anaconda.com/distribution/

Install 1. Find the downloaded installation package named Anaconda3-2018.12-Linux-x86_64. If you downloaded the installation package from your own computer and want to install Anaconda on the server, then you can transfer the installation package to Centos server by scp command. If you downloaded it from a server, skip this step. The transmission command is: scp Anaconda3-2018.12-Linux-x86_64 aliyun@192.168.1.122:/home Then enter the password according to the prompt. After waiting for the bar to finish reading, the installation package is transferred to the Centos server.

Second, or upload it to the server home folder through xftp and then enter the terminal to Anaconda3-2018.12-Linux-x86_64.sh directory: In Linux, the.sh file is an executable script file, and you need to use the command bash to install it. At this point we enter the command bash Anaconda3-2018.12-Linux-x86_64.sh and then open the installation, basically press Enter or yes by default during the installation process. However, note that the last step has a question asking you whether to install vscode, emm if you do not need to enter no, after all, in the server inside is using vim editor, there is no need to install more than one.

Note: The following misplacement tips may appear during installation

Error message bunzip2: command not found The reason is that the system is missing bunzip2 Solution: Install yum install -y bzip2

After the environment variable configuration is installed, we also need to add environment variables to facilitate our startup.

No matter what kernel (version) system, you can modify the configuration information of/etc/profile or/etc/bashrc to achieve the purpose of setting environment variables.

Here we modify the profile file

sudo vi /etc/profile

Enter the password and enter the file editor

Here sudo is to add permissions similar to root user to operate, vi is an editor

After entering the above command and then entering i, you will see the following logo:

where i stands for INSERT input mode and press down to switch to the bottom,

Add the following code to the end of the document:

#Anaconda export PATH=$PATH:/home/software/anaconda3/bin 12 Press ESC, type:, and then type wq Press Enter to save and exit

Finally reload the configuration file and type source /etc/profile

After completing the above steps, the environment variables are configured for extension

Press ESC to jump to command mode, then:w Save file without exiting vi :w file Save changes separately to file without exiting vi :w! Force save, don't push vi :wq Save file and exit vi :wq! Force save file and exit vi q: Do not save file and exit vi :q! Do not save files, force exit vi :e! Abandon all modifications, start editing 12345678910 from the last save file, test open terminal (Terminal), enter python3, if the display is as shown below, it means that the installation is successful.

At this point, I believe that everyone has a deeper understanding of "how to install Anaconda in Linux", so you may wish to actually operate it! Here is the website, more related content can enter the relevant channels for inquiry, pay attention to us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report