Install PIP for Python under Windows

Source: Internet
Author: User

1. Now the latest Python (2.7.x) version with PIP, installed under the C:\Python27\Scripts, add this path to the system path inside can use Pip, but this seems to be 6.1.x version, the latest version of PIP is 7.1.0 version of 。 If you want to update it with the latest, the command line:

Pip Install--upgrade pip

2. Ran a bit, this command old error ... There is a large string of red error, so simply go to the site up and down a new. After unpacking, switch to the file directory and install it with the Python setup.py installation.

3. PIP command can use proxy, domestic agent available http://pypi.v2ex.com/simple, and

http://pypi.douban.com/Watercress

http://pypi.hustunique.com/Huazhong University of Technology

http://pypi.sdutlinux.org/Shandong University of Technology

http://pypi.mirrors.ustc.edu.cn/China University of Science and Technology

"These should need to be in addition to simple/", no one by one verification.

For example, to install scapy, the command line is as follows:

Pip Install Scapy-i http://pypi.v2ex.com/simple

Domestic agent, the speed is generally relatively fast.

or write the configuration file directly.

Under Windows is in the%home%/pip/pip.ini directory

Let's say your username is AAA

%home% is "c:\users\aaa."

The configuration file is as follows

[Global]
Timeout = 60
Trusted-host = pypi.v2ex.com
Index-url = http://pypi.v2ex.com/simple/

Note must add trusted-host this, otherwise will appear error, and then still download from the original station, slow to die

Other references:

http://m.blog.csdn.net/blog/junheart/44041927

Https://pip.pypa.io/en/latest/user_guide.html#configuration

http://blog.csdn.net/txdb/article/details/17766315

Install PIP for Python under Windows

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.