mlbox ImportError: Cannot load backend 'TkAgg' which requires the 'tk' interactive framework, as 'headless' is currently running

真是巨大的坑,按照网上说的,matplotlib.use('agg'),修改matplotlibrc文件中的backend,plt.switch_backend('Agg'),%matplotlib inline统统失效,包括在启动Jupyter时设置环境变量export MPLBACKEND=Ag
posted @ 2021-05-01 01:21  Steven.Luo  阅读(2782)  评论(0编辑  收藏  举报