简体   繁体   English

由于错误无法在 windows 10 上安装“pip install pipenv”:由于 OSError 无法安装软件包:[WinError 2]

[英]Could not install 'pip install pipenv' on windows 10 due to ERROR: Could not install packages due to an OSError: [WinError 2]

I could not install pipenv by using "pip install pipenv" It always says "ERROR: Could not install packages due to an OSError: [WinError 2] The system cannot find the file specified: 'C:\Python310\Scripts\pipenv.exe' -> 'C:\Python310\Scripts\pipenv.exe.deleteme'"我无法使用“pip install pipenv”安装 pipenv 它总是说“错误:由于 OSError 无法安装软件包:[WinError 2] 系统找不到指定的文件:'C:\Python310\Scripts\pipenv.exe ' -> 'C:\Python310\Scripts\pipenv.exe.deleteme'"

enter image description here在此处输入图像描述

it also says like this它也这样说

enter image description here在此处输入图像描述

I already added the "C:\Users\leira\AppData\Roaming\Python\Python310\Scripts" and "C:\Users\leira\AppData\Roaming\Python\Python310\site-packages" to User and System Environmental paths.我已经将“C:\Users\leira\AppData\Roaming\Python\Python310\Scripts”和“C:\Users\leira\AppData\Roaming\Python\Python310\site-packages”添加到用户和系统环境路径。 I don't know what else to do.我不知道还能做什么。 Please help.请帮忙。 Thank you so much!太感谢了!

Run the terminal as an administrator or if you are on windows, run以管理员身份运行终端,或者如果您使用的是 windows,请运行

python -m pip install pipenv

Try this:尝试这个:

pip install --user pipenv

暂无
暂无

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

相关问题 Pip 安装包错误:由于 OSError 无法安装包 - Pip Install Package Error: Could not install packages due to an OSError 错误:由于 OSError 无法安装软件包? - ERROR: Could not install packages due to an OSError? 由于 OSError 无法安装软件包:[WinError 5] 访问被拒绝 - Could not install packages due to an OSError: [WinError 5] Access is denied 由于 OSError 无法安装软件包:[WinError 2] 没有这样的文件或目录 - Could not install packages due to an OSError: [WinError 2] No such file or directory 如何安装 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 安装 pyinstaller 时,出现以下情况:错误:由于 OSError:无法安装软件包:[WinError 2] - While installing pyinstaller, this occured : ERROR: Could not install packages due to an OSError: [WinError 2] pip 安装包出现错误“由于环境错误无法安装包”发生 - pip install pacakge with an error “Could not install packages due to an EnvironmentError” occurred pip 安装错误 - 由于 EnvironmentError 无法安装软件包 - pip install error - Could not install packages due to an EnvironmentError 由于环境错误,python 错误无法安装软件包 winerror 5 访问被拒绝 - python error could not install packages due to an environmenterror winerror 5 access is denied docker 错误:由于 OSError 无法安装软件包:[Errno 2] - docker ERROR: Could not install packages due to an OSError: [Errno 2]
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM