My PyInstaller spec:
# -*- mode: python -*-
block_cipher = None
a = Analysis([\'test.py\'],
pathex=[\'C:\\\\Users\\\\admin\\\\compile\'],
There seem to be two solutions, the first one worked fine for me:
copy platform directory to directory of your executable. You'll find the platform directory at a location like c:\Users\
or
Upgrade to a newer version of pyqt: conda install -c anaconda pyqt
Use the second option with care: Do not try to use pip for pyqt installation if you have a conda environment, this might break your conda installation: https://github.com/ContinuumIO/anaconda-issues/issues/1970