Installing Python, pycharm, and Anaconda

Source: Internet
Author: User
Tags sublime editor

Because just started to learn Python, in the installation process encountered a lot of pits, in order to facilitate everyone, so there is this article, this article is mainly for the Windows system download and installation.

At the beginning of the study, with the Python+sublime editor, and later because the installation of various libraries too cumbersome, and anaconda just contains the data processing of various libraries, such as NumPy, Matplotlib, scipy, etc., directly installed Anaconda, Later for debugging convenience and installed Pycharm, its interface is similar to the previous use of MATLAB software interface, there is intimacy. For starters, personal referrals are anaconda+pycharm.

1. Download and installation of Python 1.1 download

from the Python website https://www.python.org/, get the installation package, for later use, the author installs the 3.6.4 version, such as:

1.2 Installation

You can choose either the default installation or the custom installation. To avoid the hassle of configuring the environment and installing PIP, it is recommended to tick add environment variable and install PIP option.

After installing, use Win+r shortcut key to open cmd, enter Python, display as, display version information installation is successful.

Otherwise, the environment variable may not be added successfully, then you need to open the environment variable, manually add the next.

Specifically, manually add the following:

Open System variables, advanced environment variables, System Properties, and add a semicolon after path, plus the directory where Python.exe is located, such as "D:\Python\python \pythonfile".

Then, enter print ("Hello World"), and if the content is displayed, once again verify that the Python installation was successful, and Python is ready to install.

2. Download and installation of Anaconda 2.1 downloads

Download Anaconda installer from official website https://www.anaconda.com/download/, it is recommended that you use Python 3.6 version. Take windows and 32-bit systems as an example to download the Python 3.6 version selection interface.

2.2 Installation

After downloading the file as an. exe file, double-click the file to enter the installation interface as shown in.

1. Click next–> I agree–> next to enter the Select installation directory interface.

2, in the selection of the installation directory interface, the default installation path is C drive. If you want to change the installation path, first create a new Anaconda3 folder in the directory you want to install, and then select the path, as shown in.

3, then click Next to enter the advanced options interface. With two option boxes, it is recommended that the first option box (add Anaconda to my PATH environment variable, which is not selected by default) be selected. Then click Install, wait for the installation to finish click Next–> Finish (the installation process may be longer, 10 ~ 15 minutes, please wait patiently).

4, you can through the python–version command, if displayed, the installation is successful (provided that the 3rd step in the Add Anaconda to my PATH environment variable option box selected).

3. Download and installation of Pycharm 3.1 downloads

From the Pycharm official website http://www.jetbrains.com/pycharm/download/#section =windows, get the installation package, as the Professional Edition (Professional) requires activation, and the Community Edition (Community) already contains the basic functions we need, so here we choose to download the community version, in Windows, for example, the download interface such as:

3.2 Installation

After downloading the. exe file, double-click the file to enter the installation interface.

1, click Next to enter the installation directory selection screen, select the directory you want to install Pycharm.

  2, click Next to enter the next interface, according to self- Computer operating System (64-bit or 32-bit) Select Create Desktop Shortcut, select download and install JRE x86 by JetBrains, as shown in the interface

3. Click next–> install–> Finish to complete the installation of the software.

3.3 Use

1, click on the Pycharm icon on the desktop, after you open the Select Do not import settings, click OK to continue, click accept-> OK.

2. Click Create New Project to enter the interface. The location in the diagram is the choice of where you created the Python project and the project name (as per your case, the default is C-drive), as shown in my Project catalog is E:\python\pycharm Code, project name is test (can be arbitrarily taken) The interpreter in the diagram is the interpreter for your installation of Python and the Python.exe file under the Directory Anaconda installation directory. When you have selected, click Create.

3, enter the interface as shown, the right mouse button click on the project name (Arrow point), and then new select Python file, in the popup interface to fill in the name of the new Python files (any fill);

4, the file created after the successful entry as shown in the interface, in the new project below the creation of your new Python file;

5. Under test.py, enter print ("Hello World") for testing, for example, the output is correct.

At this point, Pycharm is also installed.

Small partners, finally can be a skill, programming it, juvenile!

2018-03-13 21:55:06

Install Python, pycharm, and Anaconda

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.