Python related--How to install PIP

Source: Internet
Author: User

A PIP was installed on a new computer today. The process has been a little forgotten, and is recorded here again.

This tutorial is based on python3.4 and requires a connection to the Internet, which takes a total of two steps.

1, to install PIP, first to install Setuptools, Link: https://pypi.python.org/pypi/setuptools#windows-powershell-3-or-later

Select Windows (Simplified)

  

Right click ez_setup.py Save As, the ez_setup.py download good. Then open cmd, change the current working path to the ez_setup.py path, enter the Python ez_setup.py, you can install it automatically.

TIP: If Python is not found after you enter Python ez_setup.py, you should add the path of the Python.exe to the system environment variable path.

2. Download pip, Link: https://pypi.python.org/pypi/pip#downloads

Choose pip-7.1.2.tar.gz (MD5, PGP)

  

Download good after unpacking, open cmd, change the current working path to the pip-7.1.2 folder just after decompression, enter the Python setup.py install, can be installed.

In the final step, add the scripts path under the Python root directory to the system environment variable path. Because Setuptools is installed, all third-party libraries that are installed are under that path. The PIP we just installed is also under change path.

So if you want to install a new third-party library, directly in the cmd Input command: Pip install the third-party library name.

Eg:pip Install Chardet

  

  

Python related--How to install PIP

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.