Python qt.qpa.xcb: could not connect to display解决办法

这篇具有很好参考价值的文章主要介绍了Python qt.qpa.xcb: could not connect to display解决办法。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

遇到问题:qt.qpa.xcb: could not connect to display

qt.qpa.xcb: could not connect to display qt.qpa.plugin: could not load the q,Python,开发语言,python

解决办法,在命令行输入:

export DISPLAY=:0

然后重新跑python程序,解决!

参考博客:qt.qpa.xcb: could not connect to displayqt.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 -高性能服务器开发文章来源地址https://www.toymoban.com/news/detail-860854.html

到了这里,关于Python qt.qpa.xcb: could not connect to display解决办法的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • qt.qpa.plugin:Could not load the Qt platform plugin “xcb“

    提示信息:  错误信息中提到“\\\"/home/zxq/anaconda3/envs/open3d/lib/python3.9/site-packages/cv2/qt/plugins”  解决办法1 :首先按照提示信息的建议“Reinstalling the application may fix this problem.”,卸载原来的opencv,一般都能解决。 解决办法2 :删除上面目录中的libqxcb.so文件即可 解决办法3 :尝

    2024年02月03日
    浏览(44)
  • qt.qpa.plugin: Could not load the Qt platform plugin “xcb“

    在服务器远程运行会弹出窗口显示画面的代码时,可能遇到上述报错 首先执行`export QT_DEBUG_PLUGINS=1`,再运行一次导致报错的代码。可以看到详细错误信息,我这里看到具体错误为:  少了这样一个包,但是直接`apt-get update`,`apt-get install libxcb-icccm`是找不到的。此时应该执行

    2024年03月27日
    浏览(37)
  • Ubuntu20.04 解决qt.qpa.plugin: Could not load the Qt platform plugin “xcb“ in ““ even though it was

    在使用wgdi的dotplot命令时,没有成功运行并报错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. 造成这个问题的原因可能是libxcb.so中缺少包,因此需要先

    2024年02月07日
    浏览(44)
  • qt.qpa.plugin: Could not load the Qt platform plugin “xcb“ in

    兄弟们看看是不是这个错: VScode 80年不出个错,今儿冒出来这个,我也不知道是mmdet配置问题,还是opencv-python的问题,还是VScode的问题hhhh 参考该链接: https://blog.csdn.net/LOVEmy134611/article/details/107212845 把QT的flag打开,我们才能看到报错的详细信息 注意,这个执行后,该环境变

    2024年02月09日
    浏览(37)
  • 2022-12-30 Ubuntu 运行qt creator提示qt.qpa.plugin: Could not load the Qt platform plugin “xcb“

    一、Ubuntu 运行qt creator提示qt.qpa.plugin: Could not load the Qt platform plugin \\\"xcb\\\"   二、解决方案:此处是缺少libxcb-xinerama库 进行安装:  三、成功打开qt creator 四、参考文章 qt.qpa.plugin: Could not load the Qt platform plugin “xcb“ in ““ even though it was found. This appl_南柒的博客-CSDN博客

    2024年02月10日
    浏览(38)
  • Ubuntu 22.04 qt.qpa.plugin: Could not load the Qt platform plugin “xcb“ in even though it was found.

    问题: 在Linux环境下 环境:Ubuntu22.04 安装Qt版本:Qt6.2.4 安装后点击QtCreator图标无效 尝试通过命令行方式启动QtCreator  找到qtcreator文件所在目录-右键Open in terminal 报错信息提示:Qt Creator 在启动时无法加载所需的 Qt 平台插件 \\\"xcb\\\",通常这个报错原因为缺少相关依赖库导致 相

    2024年04月23日
    浏览(49)
  • 报错qt.qpa.plugin: Could not load the Qt platform plugin “xcb“ in ““ even though it was found.This ap

    报错 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: minimalegl, vkkhrdisplay, linuxfb, eglfs, vnc, offscreen, xcb, wayland-egl, minimal, wayland.  

    2024年02月05日
    浏览(75)
  • 关于qt.qpa.plugin: Could not find the Qt platform plugin “windows“ in ““问题的解决

    我再安装matplotlib使用的是anaconda直接安装的,这个包会自带一个QTdesigner,和我原先环境内的pyside2冲突。当我卸载matplotlib后就发生上述报错。 问题很简单,就是程序找不到plugin插件了 向环境变量里添加 这个方案在别的文章里很容易找到 但这个也会出现一个问题,就是自己电

    2024年02月08日
    浏览(52)
  • 【已解决】qt.qpa.plugin: Could not load the Qt platform plugin “windows“ in ““ even though it was found.

    在加载labelimg的时候出现报错: qt.qpa.plugin: Could not load the Qt platform plugin “windows” 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. 翻译:Qt .qpa.plugin:无法在“”中加载Qt平台插件“windows”,即

    2024年02月07日
    浏览(44)
  • qt.qpa.plugin: Could not find the Qt platform plugin “windows“ in ““

    使用nuitka打包pyqt5后,运行exe时报错 报错如下: 原因分析 这是由于打包后,pyqt5无法找到插件plugin 导致的。 解决方法 1、先找到虚拟环境中的Pyqt5,比如我的: 2、把Qt5文件夹复制到打包好后的PyQt5文件夹中 亲测有效,如果能够解决你遇到的问题,请帮忙点个赞,顺便收藏下

    2024年02月15日
    浏览(48)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包