Lorsque j'essaie d'importer matplotlib, j'obtiens une erreur
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/matplotlib/__init__.py", line 128, in <module>
from matplotlib.rcsetup import defaultParams, validate_backend, cycler
File "/usr/local/lib/python2.7/dist-packages/matplotlib/rcsetup.py", line 29, in <module>
from matplotlib.fontconfig_pattern import parse_fontconfig_pattern
File "/usr/local/lib/python2.7/dist-packages/matplotlib/fontconfig_pattern.py", line 32, in <module>
from backports.functools_lru_cache import lru_cache
ImportError: No module named functools_lru_cache
le backport lui-même importe correctement. Lorsque j'essaie d'installer functools manuellement via
sudo pip install backports.functools_lru_cache
Je reçois des informations
Requirement already satisfied: backports.functools_lru_cache in /usr/local/lib/python2.7/dist-packages
Néanmoins, quand j'essaie de
import backports.functools_lru_cache
Je reçois des informations
ImportError: No module named functools_lru_cache
Informations système Ubuntu 16 Python 2.7.12 Pip 9.0.1