python 2.7 functools_lru_cache does not import although installed

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

    If someone is still having that problem and reinstalling backports.functools_lru_cache do not work in his case, as it was in my case, then probably installing older version of matplotlib would work. For example:

    pip install matplotlib==2.0.2
    

    Problem occurred for version 2.2.0, I switched to 2.0.2 and it is working now. I did not check other versions.

提交回复
热议问题