Skip to content Skip to sidebar Skip to footer

Exception: Cannot Find Pyqt5 Plugin Directories When Using Pyinstaller Despite Pyqt5 Not Even Being Used

A month ago I solved my applcation freezing issues for Python 2.7 as you can see here. I have since adapted my code to python 3.5 (using Anaconda) and it appears to be working. co

Solution 1:

I managed to fix the same problem I encountered (conda 4.5.4, pyinstaller 3.4) without uninstalling conda:

pip install PyQt5

conda already installed PyQt when I used conda install jupyter seaborn. Interestingly, using conda install PyQt5 does not fix my problem. I don't know why. In any case I hope this may help someone out there.

Solution 2:

I think there is an issue with the current version of pyinstaller. I uninstalled the default version.

pip uninstall pyinstaller

and installed the latest trial version

pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip

and then it worked for me.

More information here: https://github.com/pyinstaller/pyinstaller/issues/3938

Solution 3:

None of the answers on this post worked for me, but I found this thread from a few months ago and it worked. Linking it here in case others run into a similar problem and come across this thread before the other one.

The solution is to add --exclude-module PyQt5 after the pyinstaller statement.

Solution 4:

[specifically for an anacodna installation] I had the same problem, but it got fixed when I updated anaconda. From the Anaconda prompt: conda update anaconda. This updates several packages including pyqt

Solution 5:

Uninstall Anaconda and everything works... I conclude that you simply cannot have Anaconda installed and use the standard Python 3.5 compiler at the same time if you're using Pyinstaller. Maybe this is related.

This is not the first time that uninstalling Anaconda appears to solve my issues... If I should report this issue somewhere please comment below. I don't know where.

Post a Comment for "Exception: Cannot Find Pyqt5 Plugin Directories When Using Pyinstaller Despite Pyqt5 Not Even Being Used"