PIP安装升级拒绝

发布于 2025-01-26 15:51:28 字数 237 浏览 1 评论 0 原文

每当我尝试在VSC或Pycharm上升级PIP时,我都会得到: 错误:由于环境方面无法安装软件包:[WinError 5]访问被拒绝:'c:\ Program Files \ Python38 \ lib \ lib \ site-packages \ pip-pip-19.2.3.dist-Info \ entry_points.txt' 考虑使用 - 用户选项或检查权限。

访问BC管理员不允许访问它是否有问题?

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.

Is there problem with accessing it bc administrator did not allow it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

平生欢 2025-02-02 15:51:28

这很简单,因为这是错误中的一个提示“请考虑使用 - 用户选项或检查权限。”

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

您可以查看我的其他答案,带有相同的问题 link

It's simple 'cause here is a hint in the error "Consider using the --user option or check the permissions."

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

You could take a look at my other answer with the same problem link

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文