Alfredo Lopez Rodes
Alfredo Lopez Rodes

Reputation: 111

Error with Pyinstaller & PyQt5 "Cannot find existing PyQt5 plugin directories"

I work with Anaconda 5.3.0 and Python 3.7.

An application was made and I want to create an executable file with Pyinstaller, the case is that I miss the following error:

Exception: Cannot find existing PyQt5 plugin directories Paths checked: C:/Miniconda3/conda-bld/qt_1535195524645/_h_env/Library/plugins

Upvotes: 1

Views: 3474

Answers (2)

DukeSilver
DukeSilver

Reputation: 748

According to this GitHub error report, there are two main solutions:

  • Run pip install PyQt5 to install the module
  • Include the flag --exclude-module PyQt5 to prevent pyinstaller from trying to include it

The latter seems to work for me.

Upvotes: 1

Dan Walsh
Dan Walsh

Reputation: 201

In the anaconda command prompt try pip install PyQt5. It solved the issue for me.

Upvotes: 0

Related Questions