How to install Python and pip on Windows systems

Source: Internet
Author: User

System environment:

Windows 7

Pyhton 2.7.12 pip-8.1.2


1. Download the installation package

PYTHON2.7.12 installation package:

https://www.python.org/downloads/

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/85/F1/wKiom1ewJTSA9xO6AACiz_z1Cpc736.png "title=" 1.png " alt= "Wkiom1ewjtsa9xo6aaciz_z1cpc736.png"/>


PIP installation package:

Https://pypi.python.org/pypi/pip#downloads

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/85/F0/wKioL1ewJY_RVn6qAABZXCDeZxQ701.png "title=" 2.png " alt= "Wkiol1ewjy_rvn6qaabzxcdezxq701.png"/>


2. Install Python

A, double-click the downloaded installation package, always click the next step.

B. Configure the Python environment variables as follows:

Right-click My Computer, properties, tap Advanced system settings, click Environment variables, click Path, and then click OK with our Python installation path.

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/85/F1/wKiom1ewJwrQOjVQAAHPXpxAqCk986.png "style=" float: none; "title=" 3.png "alt=" Wkiom1ewjwrqojvqaahpxpxaqck986.png "/>

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/85/F0/wKioL1ewJwqgk2ssAABPE5xQiJM221.png "style=" float: none; "title=" 4.png "alt=" Wkiol1ewjwqgk2ssaabpe5xqijm221.png "/>

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/85/F1/wKiom1ewJwuTq3EoAABlrUwcJ0M786.png "style=" float: none; "title=" 5.png "alt=" Wkiom1ewjwutq3eoaablruwcj0m786.png "/>

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/85/F0/wKioL1ewJwvCSeERAAA1JX3lXfs651.png "style=" float: none; "title=" 6.png "alt=" Wkiol1ewjwvcseeraaa1jx3lxfs651.png "/>

Note: The Windows environment variable setting differs from Linux in that each path is ";" Separated. The default path after Python installation is

C:\Python2.7, so the environment variable we configured here is "C:\Python2.7;"

After the installation is complete, enter the Python test on the command line to see if the installation was successful

650) this.width=650; "src=" http://s2.51cto.com/wyfs02/M00/85/F0/wKioL1ewKe2yU4aGAACVACrlufQ086.jpg "title=" 8.jpg " alt= "Wkiol1ewke2yu4agaacvacrlufq086.jpg"/>


3. Install Pip

Place the PIP binary package on the C drive and unzip it. Path is C:\pip-8.1.2

Open a DOS command prompt, switch to the PIP directory, the command is "CD C:\pip-8.1.2"

Execute the "Python setup.py Install" command to install PIP. Once the installation is complete, you also need to set the environment variables for the PIP.

Note: After the PIP installation is complete, the generated command is in the Python Scripts directory, so the address of the PIP environment variable is set to "C:\Python27\Scripts;"

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/85/F1/wKiom1ewKTaykSN_AAD4fURXGgk571.png "title=" 7.png " alt= "Wkiom1ewktayksn_aad4furxggk571.png"/>

To test whether PIP installation was successful
650) this.width=650; "src=" http://s5.51cto.com/wyfs02/M02/85/F0/wKioL1ewKYeDpYZJAAD6qA5MPNg617.jpg "title=" 8.jpg " alt= "Wkiol1ewkyedpyzjaad6qa5mpng617.jpg"/>



Reference Document: http://www.tuicool.com/articles/eiM3Er3/

This article is from the "Zengestudy" blog, make sure to keep this source http://zengestudy.blog.51cto.com/1702365/1837803

How to install Python and pip on Windows systems

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.