破碎的Matplotlib安装,Conda更新无法正常工作

时间:2014-03-23 21:19:43

标签: python-3.x matplotlib anaconda

我的matplotlib安装好像坏了。

我尝试过使用conda update matplotlib,但问题并没有消失。我还能尝试什么?

我在尝试导入matplotlib.plt时遇到的错误在下面给出

In [2]: import matplotlib.pyplot as plt
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-2-eff513f636fd> in <module>()
----> 1 import matplotlib.pyplot as plt

C:\Anaconda\envs\py33\lib\site-packages\matplotlib\pyplot.py in <module>()
     24 from matplotlib.cbook import dedent, silent_list, is_string_like, is_numlike
     25 from matplotlib import docstring
---> 26 from matplotlib.figure import Figure, figaspect
     27 from matplotlib.backend_bases import FigureCanvasBase
     28 from matplotlib.image import imread as _imread

C:\Anaconda\envs\py33\lib\site-packages\matplotlib\figure.py in <module>()
     22 from matplotlib import __version__ as _mpl_version
     23
---> 24 import matplotlib.artist as martist
     25 from matplotlib.artist import Artist, allow_rasterization
     26

C:\Anaconda\envs\py33\lib\site-packages\matplotlib\artist.py in <module>()
      5 import matplotlib.cbook as cbook
      6 from matplotlib import docstring, rcParams
----> 7 from .transforms import Bbox, IdentityTransform, TransformedBbox, \
      8                        TransformedPath, Transform
      9 from .path import Path

C:\Anaconda\envs\py33\lib\site-packages\matplotlib\transforms.py in <module>()
     33 import numpy as np
     34 from numpy import ma
---> 35 from matplotlib._path import (affine_transform, count_bboxes_overlapping_bbox,
     36     update_path_extents)
     37 from numpy.linalg import inv

ImportError: DLL load failed: The specified module could not be found.

在[3]中:

2 个答案:

答案 0 :(得分:8)

尝试conda install -f matplotlib

答案 1 :(得分:4)

感谢asmeurer,你的答案对我来说并不合适,但我指出了正确的方向。

http://conda.pydata.org/docs/examples/install.html

conda install -f -n py33 matplotlib
conda install -f -n py33 pyparsing
conda install -f -n py33 numpy