'ImportError: cannot import name cbook' when using PyCharm's Profiler

I encountered the same error today, although probably for a different reason - the packages for matplotlib and/or six appear to be broken.

Resolved it by downgrading to the previous versions:

conda install six=1.10.0
conda install matplotlib=2.0.2

I had this error in jupyter but not IPython. Fixed with $ conda install matplotlib=2.0.2 as above but six not downgraded. Don't forget (as I did) to restart the kernel.


I had the same issue. Downgrading to matplotlib 2.0.2 seems to fix it.

pip uninstall matplotlib
pip install matplotlib==2.0.2