在python 2.7 ubuntu上安装matplotlib

时间:2016-11-19 18:13:29

标签: python-2.7 matplotlib ubuntu-16.04

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'

0 个答案:

没有答案