AttributeError: module 'matplotlib' has no attribute 'verbose' (pycharm中使用matplotlib 2.2.0的坑)

AttributeError: module 'matplotlib' has no attribute 'verbose'

環境信息

  • 本地系統:win10
  • 本地開發環境:python(3.6.3),matplotlib(2.2.0)
  • 編輯器:JetBrains PyCharm 2017.3 x64

問題描述

  • 在導入「import matplotlib.pyplot as plt」時報錯:
Traceback (most recent call last):
  File "D:/JetBrains/test/eeg_test/test.py", line 52, in <module>
    import matplotlib.pyplot as plt
  File "D:\JetBrains\pyEnv\python363\lib\site-packages\matplotlib\pyplot.py", line 115, in <module>
    _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
  File "D:\JetBrains\pyEnv\python363\lib\site-packages\matplotlib\backends\__init__.py", line 62, in pylab_setup
    [backend_name], 0)
  File "D:\JetBrains\PyCharm 2017.3\helpers\pycharm_matplotlib_backend\backend_interagg.py", line 17, in <module>
    verbose = matplotlib.verbose
AttributeError: module 'matplotlib' has no attribute 'verbose'

解決方法

相關文章
相關標籤/搜索