小编Won*_*wun的帖子

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

当我安装特定的软件包时,即使我以管理员身份运行,也会发生这种情况;对于这种情况,我专门跑了

pip install shapash
Run Code Online (Sandbox Code Playgroud)

但会得到这个错误

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.
Run Code Online (Sandbox Code Playgroud)

也尝试过

python -m pip install shapash --user
Run Code Online (Sandbox Code Playgroud)

正如另一篇文章和变体(例如 --force-reinstall)所建议的那样。有人有解决办法吗?

python pip python-3.x

8
推荐指数
1
解决办法
2万
查看次数

标签 统计

pip ×1

python ×1

python-3.x ×1