Anaconda installation and PYCHARM environment configuration

Source: Internet
Author: User


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.



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.