Build a python Development Environment graphic tutorial (install Python, pip, Interpreter) under Win7)

Source: Internet
Author: User
Tags windows x86
This article mainly shares a graphic tutorial on building a python development environment in Win7. This article mainly describes detailed steps for installing Python, pip, and interpreter. If you are interested, refer Install Python

1. Download Python suitable for the System Version

First visit web site (http://www.python.org/getit/) download for your own windows python version, 32-bit win7 download Python 3.3.2 Windows x86 MSI installer, 64-bit win7 download Python 3.3.2 Windows x86-64 MSI installer.

(Note: Right-click "computer" --> "property" and the system information is displayed. For example, my win7 is 32-bit.

)

2. Install Python

Double-click the downloaded installer to start installation. If you have no special requirements, click "next" to install Python. I will change the Python installation directory to an edisk, you can also modify the drive letter as needed.

Complete installation

3. Modify Environment Variables

Modify the environment variables and add the installation path of Python to the environment variables. Then, you can call the Python interpreter in any path.

Right-click "computer" --> "properties" and click "Advanced System settings"

Click "environment variable"

Double-click the "Path" variable under "system variables:

The "variable values" in Path are separated by semicolons. Add your "Python installation Path" to the end of Path "variable values". I add "; E: \ Python33 ", note that there is a semicolon (if you are installed in the C drive's Python33 folder, add"; C: \ Python33 "at the end, note that there is a semicolon)


Click "OK". The set "environment variable" takes effect.

Enter the command line (the shortcut key is super + r, and the super key is the key with the windows logo next to the Alt key), and enter "cmd" to enter the command line

Enter python to start the python interpreter.

The first statement "hello world!" in Python !", Input print ("hello world! "), You can see the interpreter execution result.

4. Python built-in Python GUI interpreter IDLE

Enter "IDLE" in the "search programs and files" column"

Click to start IDLE


Install pip

Pip is a Python module Installer. One of the powerful features of Python is that there are many ready-made modules. By using the ready-made functional modules developed by others, you can improve programming efficiency, it also makes the program look more concise.

Install setuptools before installing pip.

Install setuptools.

Download ez_setup.py, (https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py), after the download is complete, put ez_setup.py under your Python installation directory (for example, I put it under E: \ Python33 directory), double-click the ez_setup.py file, this script can be run.

Invalid.

Set Environment Variables

Add the installation path of easy_install.exe to the environment variables (for detailed steps, refer to the previous article)

Add the installation Path easy_install.exe after the volume value of Path, that is, add "; E: \ Python33 \ Scripts". Pay attention to the semicolon.

Click "OK" and the environment variable will take effect.

Start the command line and install pip.

Install pip

Enter easy_install pip in the command line.

After the installation is complete, you will return to the scriptssub-directory and add pip.exe. Then you can install the python module through pip.

Install ipython

Ipython has more powerful functions than the native python interpreter. You can use the tab to complete commands, call some shell commands in linux, and bring powerful debugging functions. Now we have installed pip Program

Ipython.

Run pip install ipython in the command line to install ipython. Wait a few minutes to complete the installation.

Run ipython3 on the command line to start ipython.

Finally, we recommend a very powerful cross-platform Editor "sublime text" (http://www.sublimetext.com/2) that supports Python editing.

The above is all the content of this article, hoping to help you learn.

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.