I recently had an error in google colab to make the plots I need. It pame returns the following error.
ImportError: cannot import name 'png' from 'matplotlib' (/usr/local/lib/python3.7/dist-packages/matplotlib/init_.py)
It seems that it is connected with the version of matplotlib, because I looked for this error on the internet and one of the solutions was:
!pip install matplotlib == 3.1.1
It works, but it doesn't make much sense when it comes to Colab
thanks for the code:
!pip install matplotlib == 3.1.1
it work on my colan
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With