python 出现 AttributeError: matplotlib‘ object has no attribute ‘to_rgba‘
生活随笔
收集整理的這篇文章主要介紹了
python 出现 AttributeError: matplotlib‘ object has no attribute ‘to_rgba‘
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
碰到這個問題的話,我們需要升級matplotlib的版本。
首先卸載matplotlib:
sudo pip uninstal matplotlib
之后,安裝新版本的matplotlib:(在這里還是使用清華大學鏡像)
sudo python -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple matplotlib==2.2.0
清華大學的鏡像庫真的好用,不用翻墻,速度超快! 隨時卸載,隨時安裝…~
總結
以上是生活随笔為你收集整理的python 出现 AttributeError: matplotlib‘ object has no attribute ‘to_rgba‘的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: ubuntu16.04+anaconda
- 下一篇: Ubuntu16.04 下 Python