| Reference | Downloads | Github

PyQT5 error with OSX install


We just installed the stand-alone package onto our eye tracking machine, and when we try to run one of our experiments in PsychoPy, we get an error stating that “No Module Named PyQt5”.

How can I install that module? note: this machine does not have internet access.


When you have an error message you need to copy and paste the entire thing (all the lines) here or we have no way to know what the source of the problem is.


We’ve been getting the same error:

File “/Users/admin/Documents/”, line 14, in < module >
from psychopy import locale_setup, gui, visual, core, data, event, logging, sound, hardware
File “/Applications/”, line 32, in < module >
from .qtgui import *
File "/Applications/, line 14, in < module >
from PyQt5 import QtWidgets
ImportError: No module named PyQt5

We’re running OS X 10.6.8 with PsychoPy v1.85.1 standalone installation (though we got the same error running 1.84.2 and 1.83.04, all standalone). The PyQt5 package does exist on this machine under Python 3.6, so we’ve tried adding a .pth file to the PsychoPy library. The .pth file is called PyQt5.pth and contains only this text: Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/PyQt5

We added it to the library under the following path: /Applications/

Any suggestions would be greatly appreciated!