jupyter notebook中使用pyplot时报错Could not create write struct

https://stackoverflow.com/questions/13817940/matplotlib-and-libpng-issues-with-ipython-notebook

For me putting
%matplotlib inline
before all matplotlib imports resolved this issue.

在第一行加上%matplotlib inline 就可以了

猜你喜欢

转载自blog.csdn.net/yanhe156/article/details/83038189