python 2.7 functools_lru_cache does not import although installed

前端 未结 14 1918
星月不相逢
星月不相逢 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:17

    You are using pyhton 2. try to use pip2 instead:

    • pip2 uninstall matplotlib
    • sudo apt-get autoremove python-matplotlib
    • sudo apt-get install python-matplotlib

提交回复
热议问题