我 pip 安装了 PyQt5,并在我的 CMD 中验证了这一点pip show PyQt5:
C:\Users\92175>pip show PyQt5
Name: PyQt5
Version: 5.15.0
Summary: Python bindings for the Qt cross platform application toolkit
Home-page: https://www.riverbankcomputing.com/software/pyqt/
Author: Riverbank Computing Limited
Author-email: info@riverbankcomputing.com
License: GPL v3
Location: c:\python\python37-32\lib\site-packages
Requires: PyQt5-sip
Required-by:
当我在 PyCharm 中运行我的代码时,from PyQt5 import QtWidgets, QtCore, QtGui... 出现错误 ModuleNotFoundError: No module named 'PyQt5'
我在另一个地方看到了同样的问题:ImportError: No module named PytQt5但是这有点不同,因为我既没有使用 Ubuntu 也没有使用bash.
我需要打扰我的 IT 人员让他帮我修改吗PYTHONPATH?(我认为这需要管理员权限)。如果是这样,我应该怎么做?或者有没有办法从我的代码中将 PyCharm 定向到 PyQt5 的位置?
慕盖茨4494581
相关分类