遇到问题:qt.qpa.xcb: could not connect to display
解决办法,在命令行输入:
export DISPLAY=:0
然后重新跑python程序,解决!文章来源:https://www.toymoban.com/news/detail-860854.html
参考博客: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模板网!