PyQt5中的python导入模块错误

PyQt5中的python导入模块错误

我正在尝试安装此应用程序https://github.com/Superzchen/iLearnPlus 我按照方法 2 安装应用程序。当我尝试运行它时

python iLearnPlus.py
Traceback (most recent call last):
  File "iLearnPlus.py", line 5, in <module>
    from PyQt5.QtWidgets import (QApplication, QMainWindow, QWidget, QDesktopWidget, QLabel, QHBoxLayout, QMessageBox, QAction, QFileDialog)
ModuleNotFoundError: No module named 'PyQt5'

pyqt 已经安装

pip install PyQt5
Requirement already satisfied: PyQt5 in /usr/lib/python3/dist-packages (5.14.1)

也按照建议尝试了这个:

python3 iLearnPlus.py
Traceback (most recent call last):
  File "iLearnPlus.py", line 5, in <module>
    from PyQt5.QtWidgets import (QApplication, QMainWindow, QWidget, QDesktopWidget, QLabel, QHBoxLayout, QMessageBox, QAction, QFileDialog)
ModuleNotFoundError: No module named 'PyQt5'

有人可以帮忙吗?

相关内容