Method to solve the problem that pip is not an internal or external command: 1. Right-click on the computer and open properties; 2. Click on Advanced System Settings, Environment Variables; 3. Find the path variable, click Edit, and change the pip installation path Enter it and click OK.
The operating environment of this article: windows10 system, python 3.7, thinkpad t480 computer.
Specific method:
First, click on this computer and open the properties.
Then, open the advanced system settings.
Then select environment variables.
Here, click path and select edit.
Because python has been configured before, here, you only need to add: \Scripts
If there is no configuration, modify the following path. Add \Scripts
to the path of your python installation, such as: C:\Users\Administrator\AppData\Local\Programs\Python\Python37\Scripts
and click OK.
Finally, enter cmd again and enter pip. As shown in the figure, pip configuration is successful.
Learning video sharing: Introduction to programming
The above is the detailed content of How to solve pip is not an internal or external command. For more information, please follow other related articles on the PHP Chinese website!