linux install anaconda

  1. Determine if the server is 32-bit or 64-bit
file /bin/ls

Seeing the output is the number of bits of the server, mine is 32-bit, so choose 32-bit anaconda.

  1. Download anaconda anaconda and choose your corresponding version
  2. Go to the directory where Anaconda is located and execute the following command:
bash Anaconda3-5.0.1-Linux-x86.sh

After that, you can follow the prompts (the easiest way is to let ENTER on ENTER, ask yes or no, and enter yes, the three yess represent agreeing to the license, using the default installation path, and automatically writing the path to .bashrc) 4. Make .bashrc take effect At this time, Anaconda is not installed. If you enter python in the terminal, you will find that it is still the python version that comes with Centos. This is because the update of .bashrc has not yet taken effect. Execute the following command to make it take effect.

source ~/.bashrc

Check which libraries of python are installed in linux:

pip freeze或pip list

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324454210&siteId=291194637