Home >Backend Development >Python Tutorial >How to solve the problem that pip is not an internal or external command in cmd

How to solve the problem that pip is not an internal or external command in cmd

青灯夜游
青灯夜游Original
2021-05-10 15:12:0836307browse

Solution: 1. Right-click "Computer" and select "Properties" - "Advanced System Settings"; 2. In the "System Properties" interface, select "Environment Variables"; 3. In "User Variables" "Select "path" in the area and click "Edit"; 4. In the "Variable Value" input box of the pop-up window, add the full path of pip and click "OK".

How to solve the problem that pip is not an internal or external command in cmd

The operating environment of this tutorial: windows7 system, python3.7 version, DELL G3 computer

After installing pip, if you do not configure pip, directly Entering pip will prompt: pip is not an internal or external command...

How to solve the problem that pip is not an internal or external command in cmd

Solution:

First, click Computer, Select Properties.

How to solve the problem that pip is not an internal or external command in cmd

Then, open Advanced System Settings.

How to solve the problem that pip is not an internal or external command in cmd

Then select environment variables.

How to solve the problem that pip is not an internal or external command in cmd

Here, select the path and click Edit.

How to solve the problem that pip is not an internal or external command in cmd

Because python has been configured before, here, you only need to add: \Scripts

If there is no configuration, add the full path of pip

For example: C:\Users\Administrator\AppData\Local\Programs\Python\Python37\Scripts

Click OK.

How to solve the problem that pip is not an internal or external command in cmd

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

How to solve the problem that pip is not an internal or external command in cmd

[Related recommendations: Python3 video tutorial]

The above is the detailed content of How to solve the problem that pip is not an internal or external command in cmd. 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