Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

module 'matplotlib' has no attribute 'verbose'

I can run my program in the terminal, but when I run it directly using Pycharm, it gives

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

enter image description here

like image 552
Sodagreen101 Avatar asked Mar 07 '18 07:03

Sodagreen101


2 Answers

I think I found the answer. I was having the same problem. In PyCharm Professional 2017.3, go to File | Settings | Tools | Python Scientific. There is an option there to "Show plots in toolwindow". Uncheck this option. Then it should work ok. It has something to do with PyCharm trying to help you by allowing you to interact with your plots - as hinted at in this issue discussion. https://youtrack.jetbrains.com/issue/PY-26652

like image 56
Tom Johnson Avatar answered Oct 03 '22 06:10

Tom Johnson


Try to install older version of matplotlib like 2.1.0 rather than v 2.2.0

use:

pip uninstall matplotlib pip install matplotlib==2.1.0 
like image 33
Salman Avatar answered Oct 03 '22 04:10

Salman