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

今天在使用matplotlib時報錯 AttributeError: module 'matplotlib' has no attribute 'verbose'

剛開始以爲是在python interpreter 中安裝matplotlib時出現這種錯誤。

其實不是安裝錯了,也不是代碼問題,而是PyCharm的問題。

進入 Setting->Tools->Python Scientific目錄
這個欄目下有一行文字:
Show plots in toolwindow;

把前邊的對勾去掉就可以了。

保存後,重新啓動解釋器,就沒問題了。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章