Install the Python Package Manager pip and use it under Windows

Source: Internet
Author: User
Tags deprecated

 

Never used pip under Windows, try it today, the original PIP can also be installed under Windows, the use is as simple as Linux.

Download pip source code from the following address first:

http://pypi.python.org/pypi/pip/

The latest version is 6.0.8, and the download connection is:

Http://pypi.python.org/packages/source/p/pip/pip-6.0.8.tar.gz#md5=2332e6f97e75ded3bddde0ced01dbda3

Download it and unzip it and open the command line:

1, the use of CD command into the PIP source directory, assuming that the source code in F:\Python\pip-6.0.8, then execute the following command:

[Plain]View PlainCopy 
    1. F:
    2. CD f:\python\pip-6.0.8


2. Before installing, you must ensure that the Python path has been added to the system's path environment variable, and if not, you can specify it with the following command:

[Plain]View PlainCopy  
    1. Set path=%path%; " Your python install path "


3. Then run the following command to install:

[Plain]View PlainCopy 
    1. Python setup.py Install


Wait a few moments and a bunch of prints can be installed successfully.

To install a Python package is also stall simple, just run the command:

[Plain]View PlainCopy 
    1. python-m pip Install <package name>

To install the MySQL Python support package, execute the following command:

[Plain]View PlainCopy  
    1. python-m pip install MySQL


The full PIP command is as follows:

[Plain]View PlainCopy 
  1. Install install packages.
  2. Uninstall Uninstall packages.
  3. Freeze Output installed packages in requirements format.
  4. List List installed packages.
  5. Show show information about installed packages.
  6. Search Search PyPI for packages.
  7. Wheel Build wheels from your requirements.
  8. Zip DEPRECATED. Zip individual packages.
  9. Unzip DEPRECATED. Unzip individual packages.
  10. Help Show Help for commands.

Install the Python Package Manager pip and use it under Windows

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.