AttributeError: module ‘backend_interagg‘ has no attribute ‘FigureCanvas‘AttributeError: module ‘bac

pytorch报错信息:AttributeError: module ‘backend_interagg’ has no attribute ‘FigureCanvas’
源代码:

import matplotlib.pyplot as plt

改为

import matplotlib
matplotlib.use('TkAgg')
import matplotlib.pyplot as plt

你可能感兴趣的:(python,pytorch,深度学习)