简体   繁体   English

Pip 安装升级被拒绝

[英]Pip install upgrade denied

Everytime I try to upgrade pip on VSC or Pycharm, I get: ERROR: Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'c:\program files\python38\lib\site-packages\pip-19.2.3.dist-info\entry_points.txt' Consider using the --user option or check the permissions.每次我尝试在 VSC 或 Pycharm 上升级 pip 时,我都会得到:错误:由于环境错误无法安装软件包:[WinError 5] 访问被拒绝:'c:\program files\python38\lib\site-packages\pip- 19.2.3.dist-info\entry_points.txt' 考虑使用--user选项或检查权限。

Is there problem with accessing it bc administrator did not allow it?访问它是否有问题,因为管理员不允许?

It's simple 'cause here is a hint in the error "Consider using the --user option or check the permissions."这很简单,因为这里是错误提示“考虑使用 --user 选项或检查权限。”

pip install --upgrade <Module-Name> --user

You could take a look at my other answer with the same problem link您可以使用相同的问题链接查看我的其他答案

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM