Converting py file to exe, Cannot find existing PyQt5 plugin directories

前端 未结 5 2003
余生分开走
余生分开走 2020-12-15 02:09

I\'m quite new to phyton and I\'ve just finished my first application. Now, I\'m trying to compile my .py file to an .exe buy that doestn seem to work. I\'ve looked everywhe

5条回答
  •  北荒
    北荒 (楼主)
    2020-12-15 02:42

    Try the fix in Exception: Cannot find PyQt5 plugin directories when using Pyinstaller despite PyQt5 not even being used. In short:

    pip intall PyQt5

    Note that, strangely enough, conda install PyQt5 may not fix the problem.

    I encountered the same problem and saw another suggestion: make the missing directory (C:/qt5b/qt_1524647842210/_h_env/Library/plugins in your case) and copy the two files pyqt5.dll and pyqt5qmlplugin.dll (presumably somewhere in c:\Users[name]\AppData\Local\conda\conda\envs) to the directory.

    I did not try it since I fixed the problem with pip install PyQt5. You may want to give it a try.

提交回复
热议问题