If you look at the top of your generated. Just like you I tried to set the environment path and copy the folder (which worked but again it has to be done manually. I wrote a similar answer to the same question as I have been struggling with this issue too. I struggled to bundle PyQt5 successfully for python 2.7.x, but I do not remember if the problems occurred on windows or macOS.) Source: see pull request #2991 by user shadchin. plugin_dir = os.path.join('PyQt5', 'Qt', 'plugins') It may help for older versions of PyQt5 or if you are not able to upgrade to pyinstaller 3.4: Locate the site-packages directory of your python distribution and apply the following two changes to the PyInstaller module: Edit 1: PyInstaller/loader/rthooks.dat Suggestion 2: this one worked for me, but is not recommended. There is generally better support for PyQt5 now. According to this pull request, several issues have been solved, in particular the one the OP is referring to. Suggestion 1 (recommended): upgrade to pyinstaller v3.4. This is a problem a lot of people were struggling with (including myself).
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |