How to install and use pip under windows

王林
Release: 2020-12-04 16:28:15
forward
10846 people have browsed it

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
Copy after login

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 所需安装包名字
Copy after login

2.2 pip to view installed packages

pip show --files 安装包名字
Copy after login

2.3 pip checks which packages need to be updated

pip list --outdate
Copy after login

2.4 pip upgrade package

pip install --upgrade 安装包名字
Copy after login

2.5 pip uninstalls the installation package

pip uninstall  安装包名字
Copy after login
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!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template