Win7 system installs Python and installs Pycharm Integrated development environment +pycharm shortcut keys

Source: Internet
Author: User

The contents of this article are as follows:

Download Adaconda install Adaconda install MinGW and configure MINGW-related environment Variables Anaconda installation path What are installed Pycharm Community free pycharm related shortcuts 1 run runing 2 debug Debu Gging

The UNIX system defaults to its own python, the Python executable is installed in the Usr/local/bin directory, and the library files are installed in the/usr/local/python directory

UNIX systems have Python2 and Python3 installed by default, but the default is python2 when the terminal enters Python, and if you need to use Python3, you need to enter Python3

About the Windows Python

Windows system is required to install Python itself, you can follow any path, this article mainly describes how to install Python under Win7

To install Python, you can download the Python website installation package directly.

But this method is not very convenient, after the installation is completed, only the Python executable and library files installed, some Python related packages are not installed, you need to install a variety of packages

An easy way to install is to use the Anaconda (Python Setup Manager) for Python installation, Anaconda built-in python,numpy and scipy two necessary libraries and some other libraries

This article mainly describes how to use Anaconda for Python installation 1. Download Adaconda Download Address: Https://www.continuum.io/downloads Select Python2.7 version
2. Install Adaconda

Double-click the Adaconda exe file, as shown in the following pictures:

Consent permission

Choose which account to install

Choose the installation location, where the path can be selected, in this case, select the Anaconda2 folder under C disk; Be sure to note that the folder Anaconda2 is created by the installer itself, you cannot create the folder in advance under C, or you will report an error

Other options:
Whether to add environment variables; whether to set Python2.7 to default

The installation is complete and the results are as follows
As you can see, Anaconda2 installs some of the IDE columns associated with Python development

Also, because during the installation process, the Add Anaconda to the environment variable is checked, so in the environment variable, the path appears
C:\Anaconda2;
C:\Anaconda2\Scripts;
C:\Anaconda2\Library\bin;
If this path does not appear in path, manually add these three paths to the path

If the environment is configured correctly, enter python–version in CMD and the following information appears

Here's a little problem: before installing Anaconda, The system has already installed the python2.7, has not unloaded it, the system default Python is this installs, therefore, after entering python in the cmd, only then appears the Python information, does not have the anaconda information, will cause some later question, therefore must notice, when installs the Anaconda , it's best to remove the python that was previously loaded.

(3) Anaconda Some commands to view the installed Python Application pack: Conda List Update Anaconda installation package: Conda update pythonpackage Uninstall Anaconda installation package: Conda Unistall Pythonpackage Install new Python package: Conda install pythonpackage update pip:python-m pip install–upgrade pip 3. Install MinGW and configure MinGW-related Environment Variables

Adaconda2.0.1 Previous version with MinGW, but after the version without MinGW, need to install themselves, the specific methods are as follows:

Open cmd (note that the Windows command prompt does not go into the Python environment or prompts for syntax errors because the Conda command is executed under Windows)

Input Conda install MinGW Libpython, and then enter, will appear installation progress, wait a moment can install complete.

The ANACONDA_ROOT\MINGW directory is now available (Note: Anaconda_root=c:\anaconda\anaconda installation path)

Configure environment variables related to MinGW
Add the following two paths to the path:
C:\Anaconda2\MinGW\bin;
C:\Anaconda2\MinGW\x86_64-w64-mingw32\lib;

Check if MinGW is installed successfully

After installation check, open the cmd command line, and then enter the following two commands:

Where GCC
where ld

The results are as follows:
4. What's under the Anaconda installation path

The following figure is the installation path for Anaconda, and you can see that the Python executable file is in that directory

In the Lib/site-packages directory there are Conda installed packages, below is a section of the files in the directory, you can see that there are a variety of Python-related packages
5 Installation Pycharm Community (free)

IDE environments developed by Python programs

After installing Pycharm, run the Python program with the following error

You need to set the following pycharm to solve the problem
6.Pycharm related shortcut keys 6.1 Run (runing) SHIFT + F10 Direct run SHIFT + F9 Debug Debug ALT + SHIFT + F10 Direct run mode configuration (choose which Python file to run under current path) Alt + Shift + F9 Debug Run mode configuration (select which Pyth to run under current path) on file) 6.2 debug (Debugging) F8 step run to the next step F7 into the current statement Shift + F8 exit ALT + F9 run cursor ALT + F8 Verify expression Ctrl + Alt + F8 quick Verify table Up-F9 Recovery program CTRL + F8 breakpoint Switch Ctrl + Shift + F8 View breakpoints

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.