python 2.7 functools_lru_cache does not import although installed

前端 未结 14 1917
星月不相逢
星月不相逢 2020-12-05 17:21

When I try to import matplotlib I get an error

Traceback (most recent call last):
  File \"\", line 1, in 
  File \"/usr/local/lib         


        
14条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-05 18:19

    Also meet this issue on Ubuntu 16. Uninstall & reinstall not work for me.

    My solution is reinstall from apt.

    pip uninstall matplotlib
    sudo apt-get autoremove python-matplotlib
    sudo apt-get install python-matplotlib
    

提交回复
热议问题