简体   繁体   English

由于 OSError 无法安装软件包:[WinError 5] 访问被拒绝

[英]Could not install packages due to an OSError: [WinError 5] Access is denied

This occurs when I install specific packages, even if I run as admin;当我安装特定的包时会发生这种情况,即使我以管理员身份运行也是如此; for this case specifically I was running对于这种情况,我正在跑步

pip install shapash

But would get this error但是会得到这个错误

ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 
'C:\\Users\\USER\\AppData\\Roaming\\Python\\Python39\\site-packages\\Python\\Python39\\site-packages\\~umba\\core\\runtime\\_nrt_python.cp39-win_amd64.pyd'
Consider using the `--user` option or check the permissions.

Also tried也试过

python -m pip install shapash --user

As suggested by another post and variations such as --force-reinstall.正如另一篇文章和 --force-reinstall 等变体所建议的那样。 Does anybody have a solution to this?有人对此有解决方案吗?

I fixed this error by running VS Code as Administrator.我通过以管理员身份运行 VS Code 修复了这个错误。

go to your virtual environment folder. go 到您的虚拟环境文件夹。 open up your pyenv.cfg and change the 'include-system-site-packages = false' to true save it and please try again打开您的 pyenv.cfg 并将“include-system-site-packages = false”更改为 true 保存并重试

暂无
暂无

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

相关问题 由于 OSError 无法安装 pandas_profiling 包:[WinError 5] 访问被拒绝 - Could not install pandas_profiling packages due to an OSError: [WinError 5] Access is denied 由于环境错误,python 错误无法安装软件包 winerror 5 访问被拒绝 - python error could not install packages due to an environmenterror winerror 5 access is denied 由于 OSError 无法安装软件包:[WinError 2] 没有这样的文件或目录 - Could not install packages due to an OSError: [WinError 2] No such file or directory python,conda:错误:由于 OSError 无法安装软件包:[WinError 5] 访问被拒绝:'d:\\\\anaconda3\\\\envs\\\\python39\\\\scripts\\\\pip.exe' - python, conda: ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'd:\\anaconda3\\envs\\python39\\scripts\\pip.exe' 由于错误无法在 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] 由于环境错误,无法安装 Open-CV:[WinError 5] 访问被拒绝 - Could not install Open-CV due to an EnvironmentError: [WinError 5] Access is denied 安装 pyinstaller 时,出现以下情况:错误:由于 OSError:无法安装软件包:[WinError 2] - While installing pyinstaller, this occured : ERROR: Could not install packages due to an OSError: [WinError 2] 错误:由于 OSError 无法安装软件包? - ERROR: Could not install packages due to an OSError? 由于 EnvironmentError 无法安装软件包:[WinError 32] 该进程无法访问该文件,因为它正被另一个进程使用 - Could not install packages due to an EnvironmentError: [WinError 32] The process cannot access the file because it is being used by another process Pip 安装包错误:由于 OSError 无法安装包 - Pip Install Package Error: Could not install packages due to an OSError
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM