upgraded matplotlib using MacPorts and found out that matplotlib now can't be imported
tried uninstall and reinstall matplotlib using MacPorts but the problem still exists
Traceback (most recent call last):
File "/Users/Albert_Guo/Desktop/test_code.py", line 1, in <module>
import matplotlib
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/__init__.py", line 128, in <module>
from matplotlib.rcsetup import defaultParams, validate_backend, cycler
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/rcsetup.py", line 29, in <module>
from matplotlib.fontconfig_pattern import parse_fontconfig_pattern
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/fontconfig_pattern.py", line 32, in <module>
from backports.functools_lru_cache import lru_cache
ImportError: No module named functools_lru_cache
Bug report
Bug summary
upgraded matplotlib using MacPorts and found out that matplotlib now can't be imported
tried uninstall and reinstall matplotlib using MacPorts but the problem still exists
Code for reproduction
Actual outcome
Expected outcome
Matplotlib version
print(matplotlib.get_backend())): can't print anything because matplotlib can't be imported at the first place