1. Anaconda Download
Anaconda official Download Link: https://www.continuum.io/downloads
Download 32-bit or 64-bit according to your system selection.
2. Go to the download directory
If not modified, the default download directory is/home/download/, ctrl+alt+t open the terminal, enter Cd/home, and then press Two tab, the terminal will automatically fill in the user name and the file directory under the user's name:
You can see all the listed folders, continue to enter cd/home/dcrmg/download, go to the download directory:
3. Installing Anaconda
The downloaded file is a. sh suffix, the name is longer, I give it here first to rename it called Anaconda.sh.
Continue typing sudo bash anaconda.sh at the terminal and start performing the Anaconda installation.
You will be asked to enter the user password, then the license file, and press ENTER to proceed directly:
Accept the license, enter Yes, and press ENTER:
Tip The default installation path is/home/dcrmg/anaconda2, press ENTER to confirm and start the installation:
4. Add Environment Variables
After the installation is complete, you will be prompted to add an environment variable, enter Yes and then return:
This anaconda installation was successful. The terminal window prompts you to reopen a terminal for the environment variable to take effect. Enter Python in a new terminal to indicate that it is not a python from the Linux system:
Alternatively, you can make the newly configured environment variable effective in the current terminal by entering it in the terminal where Anaconda is installed:
Source ~/.BASHRC
5. Configuring the Anaconda Python environment in Pycharm
Open Pycharm,file-> Settings (or Default Settings)->project:xx->project interp, click Pinion, select System interpreter< /c1>, add the ~/anaconda2/bin/python2 path.