我正在尝试在Pycharm上运行Pyqt5文件,但在下面我仍然收到此错误:
/Users/mustafa/.pyenv/versions/3.7.3/bin/python "/Users/mustafa/Library/Application Support/JetBrains/PyCharmCE2020.1/scratches/scratch.py"
Traceback (most recent call last):
File "/Users/mustafa/Library/Application Support/JetBrains/PyCharmCE2020.1/scratches/scratch.py", line 10, in <module>
from PyQt5 import QtCore, QtGui, QtWidgets, uic
ModuleNotFoundError: No module named 'PyQt5'
Process finished with exit code 1.
答案 0 :(得分:0)
我认为您尚未安装QT5库,您需要从cmd安装它。
pip install PyQt5