简体   繁体   English

pip 在 windows7 中未被识别为内部或外部命令

[英]pip is not recognized as an internal or external command in windows7

I have added the below lines in the path variable on my Windows 7 machine:我在 Windows 7 机器上的路径变量中添加了以下行:

C:\Users\sample\AppData\Local\Programs\Python\Python36-32;
C:\Users\sample\AppData\Local\Programs\Python\Python36-32\Lib\site-packages;
C:\Users\sample\AppData\Local\Programs\Python\Python36-32\Scripts

But still it shows但它仍然显示

pip is not recognized as an internal or external command pip 未被识别为内部或外部命令

Thanks, Dhinesh谢谢, Dhinesh

I ran into an issue with an installation where only running the pip module as a python script in command line worked. 我遇到一个安装问题,其中仅在命令行中将pip模块作为python脚本运行。 pip install [pkg] would fail but the following worked. pip install [pkg]将失败,但是以下方法可以工作。

python -m pip install [pkg]
  1. Uninstall Python completely. 完全卸载Python。
  2. Reinstall using the " executable installer ". 使用“ 可执行安装程序 ”重新安装
  3. Tick the box to add Python to your path variable. 勾选方框,将Python添加到您的path变量中。
  4. Restart computer (just in case). 重新启动计算机(以防万一)。
  5. Don't do anything else manually. 请勿手动执行其他任何操作。
  6. Run pip . 运行pip

如果尝试使用Exprator的解决方案后仍然遇到问题,请尝试将PIP添加到Path变量中

I had the same problem so I tried using - py -m pip install [pkg] and it worked我遇到了同样的问题,所以我尝试使用 - py -m pip install [pkg]并且它有效

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 'pip' 未被识别为内部或外部命令 - 'pip' is not recognized as an internal or external command 在Windows 7上安装TensorFlow - 'pip3'不被识别为内部或外部命令, - Installation of TensorFlow on windows 7 - 'pip3' is not recognized as an internal or external command, 无法解决“ pip”问题的方法未被识别为内部或外部命令 - No way to fix 'pip' is not recognized as an internal or external command Python 2.7 'Pip' 不被识别为内部或外部命令 - Python 2.7 'Pip' is not recognized as an internal or external command 'pip2' 未被识别为内部或外部命令 - 'pip2' is not recognized as an internal or external command Windows 10 conda 未被识别为内部或外部命令 - Windows 10 conda is not recognized as an internal or external command "Heroku 未被识别为内部或外部命令 (Windows)" - Heroku not recognized as an internal or external command (Windows) pip 不是内部或外部命令,也不是可运行的程序或批处理文件 - pip is not recognized as an internal or external command, operable program or batch file 点不被识别为内部或外部命令(即使添加了PATH变量之后) - Pip not recognized as internal or external command (even after adding PATH variables) 'pip' 不是内部或外部命令、可运行程序或批处理 - 'pip' is not recognized as an internal or external command, operable program or batch
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM