qt.qpa.screen: QXcbConnection: Could not connect to display unix:0 Could not connect to any ...

Python在linux生成图片,linux报错如标题

解决:

在运行py之前输入:export DISPLAY=:0

posted @ 2020-04-20 18:48  朱小勇  阅读(4830)  评论(0编辑  收藏  举报