enter image description here由于某种原因,我一直在努力将matplotlib导入TensorFlow。我已经使用sudo pip install matplotlib
安装了它,它似乎正在运行。结果我得到了Requirement already satisfied: matplotlib in /usr/lib/python2.7/dist-packages
。当我尝试在TensorFlow中导入matplotlib时,总是会出错:
File "/home/tftuts/Desktop/TensorFlowTuts/matplotlib/pyplot.py", line 29, in <module>
import matplotlib.colorbar
File "/home/tftuts/Desktop/TensorFlowTuts/matplotlib/colorbar.py", line 32, in <module>
import matplotlib.artist as martist
File "/home/tftuts/Desktop/TensorFlowTuts/matplotlib/artist.py", line 14, in <module>
from .transforms import (Bbox, IdentityTransform, TransformedBbox,
File "/home/tftuts/Desktop/TensorFlowTuts/matplotlib/transforms.py", line 39, in <module>
from matplotlib._path import (affine_transform, count_bboxes_overlapping_bbox,
ImportError: No module named 'matplotlib._path'