python 2.7 functools_lru_cache does not import although installed

前端 未结 14 1848
星月不相逢
星月不相逢 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条回答
  •  -上瘾入骨i
    2020-12-05 18:09

    The pip command was actually the pip3, and the "ImportError" was happening when I used python (2.7).

    pip2 uninstall backports.functools_lru_cache
    

    then,

    pip2 install backports.functools_lru_cache
    

    fixed my problem.

提交回复
热议问题