[英]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]
pip
. pip
。 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.