[英]pip install gives me this error “can't open file 'pip': [Errno 2] No such file or directory”
I have tried using pip -m install win32api
, but I still get the error " can't open file 'pip': [Errno 2] No such file or directory"我已经尝试使用
pip -m install win32api
,但我仍然收到错误“无法打开文件 'pip':[Errno 2] 没有这样的文件或目录”
Can anyone help me on this?谁可以帮我这个事?
Note : I have renamed the python.exe file as python2 and python3, since I have both versions installed on my pc.注意:我已将 python.exe 文件重命名为 python2 和 python3,因为我的电脑上安装了这两个版本。
python -m pip install pypiwin32
This should solve the issue.这应该可以解决问题。 Note that the package name you used is not the canonical name.
请注意,您使用的包名称不是规范名称。
Depending on your python interpreter environment variable path, you need to either py -m pip install win32api
根据您的python解释器环境变量路径,您需要
py -m pip install win32api
or或者
Use python -m pip install win32api
使用
python -m pip install win32api
In my case, py -m pip install win32api
worked but python -m pip install win32api
didn't就我而言,
py -m pip install win32api
有效但python -m pip install win32api
没有
I had the same error message while trying to lunch the command "manage.py".我在尝试使用命令“manage.py”时遇到相同的错误消息。 I solved the problem by writing the command in python shell after entering the folder where the files django-admin.exe and django-admin.py are.
我在进入文件 django-admin.exe 和 django-admin.py 所在的文件夹后,通过在 python shell 中编写命令解决了问题。 Please see screen-shot attached.
请参阅附带的屏幕截图。
In my case I fix path problem.就我而言,我修复了路径问题。
C:\Users\Chhaya\AppData\Local\Programs\Python\Python36\Lib\site-packages
I put above path in path variable, step1: right click on this PC, click on properties step2:click on Advance system setting, new window will pop up step3:click on Environment varible, you will see PATH ,edit path & put above path which in my case, if you install in other drive find out path like Python36\\Lib\\site-packages
我把上面的路径放在路径变量中,步骤1:右键单击这台PC,单击属性步骤2:单击高级系统设置,将弹出新窗口步骤3:单击环境变量,您将看到PATH,编辑路径并放在路径上方在我的情况下,如果您安装在其他驱动器中,请找出
Python36\\Lib\\site-packages
类的路径
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.