[Three-step solution] 'pip' is not recognized as an internal or external command, operable program or batch file.

[Three-step solution] 'pip' is not recognized as an internal or external command, operable program or batch file.

problem analysis:

  If after installing Python, you encounter ['pip' is not an internal or external command, an operable program or batch file when using the pip command on the command line. ] Generally it is because when we installed Python, we did not correctly add the Python executable program to the system environment variables.

Insert image description here

Solution steps:

  Step 1: Find the Python installation path in the system. The pip program is stored in the Scripts folder. Open Script and copy the full path, as shown in the figure below;

Insert image description here
Insert image description here

  Step 2: Right-click [This PC], click [Properties], click [Advanced System Settings], click [Environment Variables], find and select the variable [Path] in the system variables, click [Edit], and click [New] , paste the complete path and click [OK]

Insert image description here
Insert image description here

  Step 3: Open [Command Prompt], enter pip, the following content will be displayed, the problem is solved!

Insert image description here

Guess you like

Origin blog.csdn.net/qq_43341612/article/details/131711340