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