使用nuitka打包pyqt5后,運(yùn)行exe時(shí)報(bào)錯(cuò)
報(bào)錯(cuò)如下:
qt.qpa.plugin: Could not find the Qt platform plugin "windows" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
原因分析
這是由于打包后,pyqt5無(wú)法找到插件plugin 導(dǎo)致的。
解決方法
1、先找到虛擬環(huán)境中的Pyqt5,比如我的:
D:\job\gs\venv\das38\Lib\site-packages\PyQt5
2、把Qt5文件夾復(fù)制到打包好后的PyQt5文件夾中文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-605569.html
親測(cè)有效,如果能夠解決你遇到的問題,請(qǐng)幫忙點(diǎn)個(gè)贊,順便收藏下 ·_·文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-605569.html
到了這里,關(guān)于qt.qpa.plugin: Could not find the Qt platform plugin “windows“ in ““的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!