The reason why python does not display images using plt.show

Add these two lines to the header file

import  matplotlib
matplotlib.use('TKAgg')

Guess you like

Origin blog.csdn.net/qq_41623632/article/details/120116503