QXcbConnection: Could not connect to display

import matplotlib; matplotlib.use('agg')

注意:要添加到所有matplotlib前面,否则不起作用

posted @ 2018-11-07 17:50  BlueOceans  阅读(1224)  评论(0编辑  收藏  举报