Home  >  Article  >  Backend Development  >  How to install pip in Python_How to install pip in Python

How to install pip in Python_How to install pip in Python

WBOY
WBOYforward
2024-04-02 15:10:01547browse

1. First, before installing pip, make sure that the python environment is normal, download the pip installation package through the official website, unzip the downloaded package, and open the command prompt window through the win R shortcut.

How to install pip in Python_How to install pip in Python

2. Then as shown in the picture.

How to install pip in Python_How to install pip in Python

3. Then enter the pip file directory in the command prompt.

How to install pip in Python_How to install pip in Python

4. In the pip directory, enter the command "python setup.py install" to install the pip module.

How to install pip in Python_How to install pip in Python

5. After the installation is completed, there will be the word "Finished".

How to install pip in Python_How to install pip in Python

6. After the installation is complete, enter "pip list" or "pip -help" in the command prompt. If there is corresponding output and no error is reported, pip is successfully installed.

How to install pip in Python_How to install pip in Python

7. The last part of the Python version has pip installed by default, but it needs to be upgraded because it is not the latest. The upgrade command for pip is "python -m install pip --upgrade pip".

How to install pip in Python_How to install pip in Python

The above is the detailed content of How to install pip in Python_How to install pip in Python. For more information, please follow other related articles on the PHP Chinese website!

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