When I try to import matplotlib I get an error
Traceback (most recent call last):
File \"\", line 1, in
File \"/usr/local/lib
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.