来源:http://blog.youkuaiyun.com/peihaozhu/article/details/52903282
pyinstaller打包使用pyqt5模块的时候,在win平台下,由于pyinstaller无法准确获取QT动态库文件路径,会报错导致无法打开运行程序,并提示错误信息pyinstaller failed to execute script pyi_rth_qt5plugins
此时我们需要在打包的时候直接告诉pyinstaller到哪里去找,这个路径分隔符需要是unix形式:
pyinstaller --paths C:/****/Python/Python35-32/Lib/site-packages/PyQt5/Qt/bin -F -w ****.py
2017.10.21更新
python3.6.2 32位
我专门开了一个win10虚拟机安装这个版本的python+pyinstaller进行打包,直接pyinstaller -w -F xxx.py 啥事情没有,简直完美