Solve the problem of "'pip' is not an internal or external command, nor an executable program or batch file"

Solve the problem of "'pip' is not an internal or external command, nor an executable program or batch file"

1. Installation solution

In the Python installation interface, there is an option to add Python to the environment variable, which can avoid the problem that PIP is not an internal or external command, nor is it a runnable program or batch file. The specific interface is as follows:
Insert picture description here

2. Set the environment variable of the installation library file

The first step is to find your own installation library file Scripts. The
second step is to put the location of the library file and set the environment variable
this computer -> properties -> advanced system settings -> advanced -> environment variables -> path -> modify, add It can be run after success

Insert picture description here
Insert picture description here

Open cmd again and the pip command will be able to run

Guess you like

Origin blog.csdn.net/m0_55259539/article/details/114266872