Home  >  Article  >  Backend Development  >  How to solve pip is not an internal or external command

How to solve pip is not an internal or external command

王林
王林Original
2021-02-03 16:15:3945625browse

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.

How to solve pip is not an internal or external command

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.

How to solve pip is not an internal or external command

Then select environment variables.

How to solve pip is not an internal or external command

Here, click path and select edit.

How to solve pip is not an internal or external command

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.

How to solve pip is not an internal or external command

Finally, enter cmd again and enter pip. As shown in the figure, pip configuration is successful.

How to solve pip is not an internal or external command

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!

Statement:
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