python 解决ssh连接远程客户端,matplotlib报qxcbconnection could not connect to display错误 使用use命令即可,必须放在调用pyplot前面! 不要使用show()函数,使用save()函数 import matplotlib matplotlib.use('Agg') Previous Next