How to install pip in python and pip in python

Source: Internet
Author: User

How to install pip in python and pip in python

After installing python (My python version is 32-bit, version 2.7.10), if you need to install some other libraries, there are generally two methods, one is to manually download from the official website of each library and install it on your own; the other is to install pip, which allows you to easily install various python libraries.

Note that after installing python, add python to the path variable of the system, so that you can directly use python commands on the command prompt interface.

Step 1: Download pip and download the selected compressed package

Step 2: Decompress the package

Step 3: Use a command prompt to enter the folder after the pip installation package is decompressed, and enter python setup. py install. After a while, pip is installed.

Step 4: add the pip command to the system PATH variable. For example, add C: \ Python27 \ Scripts to the system PATH variable.

The above is the complete installation process. In the future, you can directly use pip install package_name to install any library. For more instructions on how to use pip, see here.

 

References

1, stakcoverflow post on how to install pip on windows, http://stackoverflow.com/questions/4750806/how-to-install-pip-on-windows

2, a detailed post on installing pip Chinese, http://www.cnblogs.com/yuanzm/p/4089856.html

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.