File "/Users/me/anaconda3/lib/python3.7/site-packages/matplotlib/pyplot.py", line 2355, in <module>
switch_backend(rcParams["backend"])
File "/Users/me/anaconda3/lib/python3.7/site-packages/matplotlib/pyplot.py", line 221, in switch_backend
backend_mod = importlib.import_module(backend_name)
File "/Users/me/anaconda3/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/Applications/PyCharm.app/Contents/helpers/pycharm_matplotlib_backend/backend_interagg.py", line 17, in <module>
verbose = matplotlib.verbose
AttributeError: module 'matplotlib' has no attribute 'verbose'
如果你遇到这样的问题,是因为你的PyCharm画图设置导致的问题,你只需要在Preference的Tools修改Python Scientific绘图设置就可以了。
image.png
网友评论