尽管管理特权

发布于 2025-02-06 17:54:39 字数 631 浏览 1 评论 0原文

这个问题的标题说明了一切,但是这里是。

我目前正在尝试在系统(不在VENV中)上安装PYQT5和PYQT5工具。我在c:\ Program Files \ Python39中安装了Python 3.9。通常情况下,一切正常,如果我拥有管理员特权,请将软件包安装到Python安装中,如果没有,则将其放入c:\ users \ username \ username \ appdata \ appdata \ roaming \ python \ python \ python \ python39。现在,我遇到了一些奇怪的东西,即使我拥有管理员特权并尝试安装PYQT5,它决定将其放入AppData Python目录中,而不是实际的Python安装C:\ ProgramFiles \ ProgramFiles \ Python39

我知道我可能可以通过使用-t来解决此问题,但是我很好奇为什么会这样。为什么只有pyqt5?到目前为止,其他所有软件包都非常好。之后我尝试安装随机的其他软件包,它们也工作正常。甚至PYQT6也完全正常。那么,使PIP以怪异方式行动的Pyqt5是什么呢?经过大约15次重试和安装排列后,我仍然无法接近答案。

我很感谢此时的任何解释,因此请提前感谢您!

The title of the question kind of says it all, but here goes.

I'm currently trying to install pyqt5 and pyqt5-tools on my system (not in venv). I have a Python 3.9 installation in C:\Program Files\Python39. Usually everything works fine in that, if i have admin privileges pip installs the package to the Python installation and if not it puts it into C:\users\username\appdata\roaming\python\python39. Now I have encountered something strange, even if I have admin privileges and try to install pyqt5 it decides to put it into the AppData Python directory instead of the actual python install inside C:\ProgramFiles\Python39.

I know that I could probably fix this by using -t, but I am curious as to why it would be this way. Why only PyQt5? Every other package worked absolutely fine until now. I've tried installing random other packages afterwards and they also worked fine. Even PyQt6 was completely normal. So what is it about PyQt5 that makes pip act in weird ways? After about 15 retries and permutations of the install I am still no closer to an answer.

I'm grateful for any explanation at this point, so thank you in advance!

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文