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 on Linux system

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

Share

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

Editor to share with you how to install anaconda Linux system, I believe that most people do not know much about it, so share this article for your reference, I hope you will learn a lot after reading this article, let's go to understand it!

About Anaconda: Anaconda is a convenient python package management and environment management software, which is generally used to configure different project environments.

We often encounter situations where project An and project B are based on python2 and python3 respectively, while the first computer can only install one environment, and Anaconda comes in handy at this time. It can create multiple non-interference environments and run different versions of software packages to achieve compatibility.

Anaconda greatly simplifies your workflow by managing toolkits, development environments, and Python versions.

Anaconda can not only easily install, update and uninstall toolkits, but also automatically install the corresponding dependency packages during installation, and can also use different virtual environments to isolate projects with different requirements.

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

Install one, find the downloaded file named Anaconda3-2018.12-Linux-x86_64 installation package, if you download the installation package through your own computer, want to install Anaconda on the server, then you can transfer the installation package to the Centos server through the scp command. If you downloaded it from the server, please skip this step. The transfer command is: scp Anaconda3-2018.12-Linux-x86_64 aliyun@192.168.1.122:/home and then enter the password as prompted. After waiting for the bar to be read, 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 the Anaconda3-2018.12-Linux-x86_64.sh directory: in Linux, the .sh file is an executable script file, which needs to be installed with the command bash. At this point, we enter the command bash Anaconda3-2018.12-Linux-x86_64.sh and then open the installation. During the installation process, basically press enter or yes by default. However, note that the last step is to ask you whether to install vscode,emm if you do not need to type no, after all, the server is using a vim editor, there is no need to install one more.

Note: the following dislocation prompts may appear during installation

Error message bunzip2: command not found is due to a lack of bunzip2 solution on the system: install and yum install-y bzip2

After the environment variable configuration installation is complete, we also need to add the environment variable to facilitate us to start.

No matter what kind of kernel (version) the system is, you can set the environment variable by modifying the configuration information of / etc/profile or / etc/bashrc.

Here we modify the profile file

Sudo vi / etc/profile

Enter the password and enter the file editing.

Here, sudo is operated with permissions similar to root users, and vi is an editor.

Enter the above command and then enter I, and you will see the following identification:

The I here represents the INSERT input mode, and then press the down arrow to switch to the bottom

Add the following code to the end of the file:

# Anaconda export PATH=$PATH:/home/software/anaconda3/bin 12 press the ESC key, enter:, and then enter wq and 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 and extended.

Press the ESC key to jump to command mode, and then:: W save the file without exiting vi: W file will save the changes to file, do not exit vi: W! Force save, do not launch vi: wq save file and exit vi: wq! Force to save the file and exit vi Q: do not save the file, exit vi: Q! Do not save the file, force to exit vi: e! Discard all changes, edit the 12345678910 test open terminal (Terminal) from the last time you saved the file, and enter python3. If it is shown as shown below, the installation is successful.

The above is all the contents of the article "how to install anaconda in Linux system". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

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