简体   繁体   中英

pip.exe missing in python scripts module

correction i edited the environment variable to path Scripts, but in the command prompt on typing the pip command it does not shows up the package installation

python\\scripts location picture

While executing the pip command in the command prompt, it shows pip is not recognized as an internal or external command, operable program or batch file.

I tried setting environment variables and all other alternative solution still I am not able to solve it. I recently noticed pip.exe file missing from python/scripts module.

Is that reason to show up this error? if it is yes, how will I install it manually?

You should add the full directory to the Scripts folder to your PATH environment variable. When you run commands in a command prompt, Windows will search through the folders listed in PATH .

Assuming you are on Windows 10:

  1. Press the start button then search "Environment Variables"
  2. Click the "Edit Environment Variables" option.
  3. Click the "Environment Variables" button in the box that pops up.
  4. Scroll down and find the PATH variable, double click it.
  5. Click "New"
  6. Paste in the path to the Scripts folder.
  7. Save it and exit, then restart the terminal. Now pip will be recognized.

最后我解决了它。我使用了python 3.8.3版本。在这个版本中不是名为“Scripts”的文件夹。我只是删除这个版本并重新安装python 3.7.8版本,然后pip就在这里:D

I know this has been solved, but another way of dealing with this is to create an empty file in the 'Scripts' folder and rename it to pip.bat. Then add the following code:

python -m pip %*

Which simply passes all the arguments of the pip command to python.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM