我最近在 google colab 中出错,无法制作我需要的图。它返回以下错误。
ImportError: 无法从 'matplotlib' (/usr/local/lib/python3.7/dist-packages/matplotlib/init_.py) 导入名称 'png'
好像和matplotlib的版本有关,因为我在网上找了这个错误,解决方法之一是:
!pip install matplotlib == 3.1.1
能用,但对Colab来说意义不大
最佳答案
感谢代码:
!pip install matplotlib == 3.1.1
它适用于我的可兰
https://stackoverflow.com/questions/66987376/