Home >Backend Development >Python Tutorial >How to install pip in python
How to install pip in python?
Before installing pip, first confirm that your python environment is normal, and then download the pip installation package from the official website.
Recommended: "Python Tutorial"
Extract the downloaded package, and then open the command prompt through the win R shortcut window and enter the pip file directory in the command prompt.
In the pip directory, enter the command "python setup.py install" to install the pip module; after the installation is complete, there will be the word "Finished".
After the installation is completed, enter "pip list" or "pip -help" in the command prompt. If there is corresponding output and no error is reported, pip is successfully installed. .
Some Python versions have pip installed by default, but they need to be upgraded because they are 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. For more information, please follow other related articles on the PHP Chinese website!