Pip is a handy Python package management tool that focuses on installing the Pip method under Windows 10 .
1. Download pip
Address: Https://pypi.python.org/pypi/pip#downloads
Note Select the tar.gz compressed package, currently the latest version is 9.0.1, the version chosen here is:pip-9.0.1.tar.gz (MD5, PGP)
2. Unzipinstallation
Unzip the downloaded compressed package to the working directory (e.g. D:\), open windows CMD, and run the following command to enter the extracted PIP directory
CD/D D:\pip-9.0.1
install using the following command
Python setup.py Install
3. Add Environment variables
Add a Windows system environment variable as you would add it when you install Python
As my Python directory is:f:\python27\;
Add the following 2 directories to the system environment variable:f:\python27\; F:\Python27\Scripts;
4. Pip Common Commands
After the installation succeeds, after re-entering CMD, run Pip and you can see the Help document:
The following commands are commonly used by PIP:
1234567891011 |
#安装包 pip install xxx #升级包,可以使用-U 或者 --upgrade pip install -U xxx #卸载包 pip uninstall xxx #列出已安装的包 pip list |
5. Frequently Asked Questions
Recently encountered using the PIP command times wrong attributeerror: ' Module ' object has no attribute ' wraps ', found to be a PIP installation version error caused, using the above method to reinstall the latest version of PIP can be resolved.
Windows 10 Installation Pip method