AttributeError: 'module' object has no attribute 'to_rgb'

后端 未结 4 1074
春和景丽
春和景丽 2020-12-17 04:14

I wrote a simple code to form taylor digram using skillmetrics package. I used python version Python 2.7.12. The code is as follows:-

import matplotlib.pyplo         


        
相关标签:
4条回答
  • 2020-12-17 04:43

    That's related to the versions of the two tool libraries that ipykernel and matplotlib are not compatible. AttributeError: 'module' object has no attribute 'to_rgba'

    0 讨论(0)
  • 2020-12-17 04:51

    Just run the command below it will solve the issue

    $ sudo pip install --upgrade matplotlib
    
    0 讨论(0)
  • 2020-12-17 04:55

    Try upgrading matplotlib and numpy to the latest version

    sudo pip3 install --upgrade numpy
    sudo pip3 install --upgrade matplotlib
    
    0 讨论(0)
  • 2020-12-17 05:08

    The to_rgb function was added relatively recently to the matplotlib.colors namespace. You probably have an older version of matplotlib installed. Try updating to the latest version of matplotlib.

    0 讨论(0)
提交回复
热议问题