Fabulini
Fabulini

Reputation: 171

No module named 'PyQt5.sip' even if I just installed it

I am using Ubuntu VM and trying to run a GUI script - this is the entire repo and this is the script. Apparently I didn't need to install PyQt5, because it said Requirement already satisfied: pyqt5 in ./.eggs/PyQt5-5.14.2-py3.8-linux-x86_64.egg (5.14.2) Requirement already satisfied: PyQt5-sip<13,>=12.7 in ./.eggs/PyQt5_sip-12.7.2-py3.8-linux-x86_64.egg (from pyqt5) (12.7.2).

However, when running the script, I got the error:

Traceback (most recent call last):
 File "Scripts/CellModellerGUI.py", line 9, in <module>
from PyQt5.QtWidgets import QApplication
ModuleNotFoundError: No module named 'PyQt5.sip'

So I installed it with pip, but I get the exact same error.

I tried pyqt5-sip, too, but "Requirement already satisfied" appeared again.

Upvotes: 0

Views: 806

Answers (1)

awarrier99
awarrier99

Reputation: 3855

It's possible that your pip and python are not linked to the same version. Try doing pip --version and python --version and see if the Python versions match (not the pip version, but the Python version it says it's linked to)

Upvotes: 1

Related Questions