Home  >  Article  >  Operation and Maintenance  >  How to install and use pip under windows

How to install and use pip under windows

王林
王林forward
2020-12-04 16:28:1510844browse

How to install and use pip under windows

PIP introduction:

Pip is similar to yum and is mainly used to install Python packages and is very convenient. This article introduces the installation method and usage of pip in detail.

(Related recommendations: windows)

1. pip download and installation configuration

(1) pip depends on python, first check the windows machine Have you installed python on the computer, or have you added it to the environment variables?

(2) Install pip, download the pip tar package locally and decompress it. This tar.gz format is a package common to windows and linux. , you can decompress it with regular decompression tools under Windows. The download address is as follows

https://pypi.python.org/pypi/pip#downloads

How to install and use pip under windows

(3) Enter the decompressed directory and execute python setup.py install Enter l to install. After the installation is completed, finished appears indicating that the installation is successful.
(4) Configure the pip environment variable. First find the path of pip, which is located in the Scripts folder of the python installation directory. Copy the path and put it in the environment variable path. Finally, enter pip list in the command line window:

How to install and use pip under windows

How to install and use pip under windows

How to install and use pip under windows

## indicates that the installation is successful, but sometimes there will be ImportError No module named setuptools error occurs

2. Detailed explanation of pip usage

2.1 pip installation package

pip install 所需安装包名字

2.2 pip to view installed packages

pip show --files 安装包名字

2.3 pip checks which packages need to be updated

pip list --outdate

2.4 pip upgrade package

pip install --upgrade 安装包名字

2.5 pip uninstalls the installation package

pip uninstall  安装包名字

3. Other parameters of pip can be viewed through pip --help:

How to install and use pip under windows

The above is the detailed content of How to install and use pip under windows. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete