2.设置环境变量:此电脑>高级系统设置>环境变量>在用户变量中点新建 变量名:QT_QPA_PLATFORM_PLUGIN_PATH 变量值:C:\ProgramData\Anaconda3\Lib\site-packages\Pyside6\plugins 如果第一步没有复制dll文件的小伙伴,路径就要下到platform层级。 运行程序,Bravo!
1. 将环境变量设置到QT_QPA_PLATFORM_PLUGIN_PATH中 1.1 如果不知道pyside6 在那个文件夹,可以通过以下方式获取 importos, PySide6 print(os.path.dirname(PySide6.__file__)) 1.2 然后将打开系统环境变量 输入QT_QPA_PLATFORM_PLUGIN_PATH, 路径为上述代码打印, 然后上述错误即可解决 2. 设置系统代码, 打包...
auto-py-to-exe pyside6 打包后在其他电脑上无法使用 Could not find the Qt platform plugin "windows" in"" 晚荣 千人千问,千问千答。 图1 打包后的exe文件夹 在打包成功的文件夹中,将图2中的pyside6文件夹,整体拖入到图1的文件夹下 图2 重新点击exe可执行文件即可。发布...
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. The app.dist folders generated by Nuitka 2.3 and 2.3.1 includ...
os.environ['QT_QPA_PLATFORM_PLUGIN_PATH'] = plugin_path print(plugin_path) 1. 2. 3. 4. 5. 6. 7. 关注一下控制台的输出,可以看到这行代码的输出是这个需要的文件的路径。 print(plugin_path) 1. 然后打开“我的电脑”右键——“属性”——“高级系统设置”——“高级”——“环境变量” ...
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: wayland-egl, vkkhrdisplay, wayland...
显⽰的报错信息:ThisapplicationfailedtostartbecausenoQtplatformplugincouldbeinitialized.Reinstallingtheapplicationmayfixthisproblem.⽅案1:经过与PySide2打包后的⽂件进⾏对⽐,发现Pyinstaller打包的⽂件⽬录⾥缺少了Qt运⾏所需的⼀些⽂件,如下:pluginstranslationsqt.conf在哪⾥找到PySide6需要的...
Description of the issue Context information (for bug reports) Output of pyinstaller --version: 5.7.0 Version of Python: 3.9.5 Platform: Windows (CN) How you installed Python: python.org/downloads Did you also try this on another platfor...
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem . 根据给出的提示可以看出错误原因是系统找不到Qt平台的插件,解决方法则是将PySide2或者PyQt5的plugins目录加入到QT_QPA_PLATFORM_PLUGIN_PATH环境变量里面。
Qt/plugins/platforms/libqminimal.so, metadata= {"IID":"org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3","MetaData": {"Keys": ["minimal"] },"archreq":0,"className":"QMinimalIntegrationPlugin","debug":false,"version":393216} Got keysfromplugin meta data QList("minimal") Q...