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.
2. Then as shown in the picture.
3. Then enter the pip file directory in the command prompt.
4. In the pip directory, enter the command "python setup.py install" to install the pip module.
5. After the installation is completed, there will be the word "Finished".
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.
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".
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!