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

04-30 1362阅读

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

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

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

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 -高性能服务器开发

VPS购买请点击我

文章版权声明:除非注明,否则均为主机测评原创文章,转载或复制请以超链接形式并注明出处。

目录[+]