简体   繁体   English

pip install 给我这个错误“无法打开文件'pip':[Errno 2]没有这样的文件或目录”

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

相关问题 无法打开文件 'pip': [Errno 2] 没有那个文件或目录 - can't open file 'pip': [Errno 2] No such file or directory pip install FileNotFoundError: [Errno 2] 没有这样的文件或目录: - pip install FileNotFoundError: [Errno 2] No such file or directory: 安装 gekko 时如何修复“无法打开文件 'pip':[Errno 2] 没有这样的文件或目录” - How to fix 'can't open file 'pip': [Errno 2] No such file or directory' when installing gekko Pip install:无法打开文件pip,或者父模块''未加载 - Pip install: can't open file pip, or Parent module '' not loaded Docker中的pip不能打开文件'/ usr / local / bin / pip':[Errno 13]权限被拒绝 - pip in docker getting can't open file '/usr/local/bin/pip': [Errno 13] Permission denied 如何安装 requirements.txt pip 错误->由于 OSError 无法安装软件包:[Errno 2] 没有这样的文件或目录 - How to install requirements.txt pip error ->Could not install packages due to an OSError: [Errno 2] No such file or directory python: 无法打开文件 get-pip.py 错误 2] 没有这样的文件或目录 - python: can't open file get-pip.py error 2] no such file or directory 如何在python上安装pip(错误:无此类文件或目录) - How to install pip on python (error : No such file or directory) pip install dryscrape 失败并显示“错误:[Errno 2] 没有这样的文件或目录:'src/webkit_server'”? - pip install dryscrape fails with “error: [Errno 2] No such file or directory: 'src/webkit_server'”? pip安装彩色获取错误-FileNotFoundError:[Errno 2]没有这样的文件或目录:'README.rst' - pip install colored getting error - FileNotFoundError: [Errno 2] No such file or directory: 'README.rst'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM