PyQt5 打包问题解决 Unable to find "D:\anaconda3\lib\site-packages\PyQt5\Qt\translations\qtwebengine_locale

今天用pyinstaller打包Pyqt5程序报了以下错误,通过在网上查询得到了解决方案

Unable to find "D:\anaconda3\lib\site-packages\PyQt5\Qt\translations\qtwebengine_locales" when adding binary and data files.

查询得知在PyQt5在高版本不再预装QtWebEngineWidgets库

解决方法,安装QtWebEngineWidgets库后,重新打包

pip install PyQtWebEngine
发布了10 篇原创文章 · 获赞 18 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/qq_39105012/article/details/103073398