解决QT5移植报错:This application failed to start because no Qt platform plugin could be initialized

今天自己基于Pyqt5开发了一个软件,打包成exe后在自己的电脑上运行正常,在其他机器上提示: This application failed to start because no Qt platform plugin could be initialized错误。

 

网上已经有的方法都无法解决我的问题:

    1. //blog.csdn.net/manyoudian/article/details/107981522
    2. //www.cnblogs.com/ybqjymy/p/12193701.html
    3. //blog.csdn.net/liubing8609/article/details/89289845
    4. //blog.csdn.net/jzwong/article/details/71479691
    5. //www.cnblogs.com/Yu-FeiFei/p/7794575.html

 

最后我成功解决的方法竟然是:将软件放置的中文路径改为英文路径即可解决问题,目前网络上貌似没有这个解决方案,特此记录,送给有缘人。

也就是说:程序打包为exe不存在任何问题,根本问题在于使用了中文路径,程序没有正确读取到已经被打包好的一些plugins。