Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在 pycharm 中导入 loadui 库。我已经 pip install pyqt5 和 pyqt5-tools。但是当我尝试使用from PyQt5.uic import loadUi此代码导入 loadui 时,它给了我 Unresolved reference 'LoadUi'和Cannot find reference 'uic' in '__init__.pyi'错误。
from PyQt5.uic import loadUi
Unresolved reference 'LoadUi'
Cannot find reference 'uic' in '__init__.pyi'
我该如何解决这个问题?
也许您应该尝试安装 PyQt5 工具。试试这个命令: pip install pyqt5-tools