Missing dll files when using pyinstaller
I read all complicated solutions on github and stackoverflow for this problem. However, the below simple solution is what worked for me:
Step 1: pip3 uninstall pyinstaller
Step 2: pip install pyinstaller
Step 3: pyinstaller --onefile filename.py
I tried this solution on 2 different computers which were facing the same problem. Both worked. Please let me know if this works for you as well. Thumbs up would be appreciated after that. Cheers
This may be more like a workaround and Pyinstaller might need fixing.
I found out that --paths
argument pointing to the directory containing Qt5Core.dll, Qt5Gui.dll, etc. helped
pyinstaller --paths C:\Python35\Lib\site-packages\PyQt5\Qt\bin hello.py
This has now been fixed in the latest development branch of PyInstaller, see this Issue for PyInstaller on GitHub.