解决 ‘GDK_IS_DISPLAY (display)‘ failed

错误:

Gdk-CRITICAL **: 12:07:39.428: gdk_cursor_new_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

 

解决:

import matplotlib 
matplotlib.use('Agg') 

 

你可能感兴趣的:(python)