Matplotlib和numpy中的依赖关系错误

时间:2016-08-07 19:02:38

标签: python numpy matplotlib

安装了以下版本的软件:

  1. 蟒-2.5
  2. numpy的-1.0.1.win32-py2.5
  3. SciPy的-0.5.2.win32-py2.5
  4. matplotlib-0.87.7.win32-py2.5
  5. [按相同顺序安装]

    运行我的程序时,收到此错误消息:

    *The import of the numpy version of the _transforms module,
    _ns_transforms, failed.  This is is either because numpy was
    unavailable when matplotlib was compiled, because a dependency of
    _ns_transforms could not be satisfied, or because the build flag for
    this module was turned off in setup.py.  If it appears that
    _ns_transforms was not built, make sure you have a working copy of
    numpy and then re-install matplotlib. Otherwise, the following
    traceback gives more details:
    
    Traceback (most recent call last):
      File "C:\Python25\Scripts\_pictsim.py", line 16, in <module>
    from pylab import plot, legend, savefig, gca, vlines, figure, title, xlabel, ylabel, semilogy,\
      File "C:\Python25\Lib\site-packages\pylab.py", line 1, in <module>
    
        >from matplotlib.pylab import *
    
      File "C:\Python25\Lib\site-packages\matplotlib\pylab.py", line 201, in <module>
    
        >from axes import Axes, PolarAxes
    
      File "C:\Python25\Lib\site-packages\matplotlib\axes.py", line 14, in <module>
    
        >from artist import Artist, setp
    
      File "C:\Python25\Lib\site-packages\matplotlib\artist.py", line 4, in <module>
    
        >from transforms import identity_transform
    
      File "C:\Python25\Lib\site-packages\matplotlib\transforms.py", line 223, in <module>
    
        >from _transforms import Value, Point, Interval, Bbox, Affine
    
      File "C:\Python25\Lib\site-packages\matplotlib\_transforms.py", line 17, in <module>
    
        >from matplotlib._ns_transforms import *
    
    ImportError: DLL load failed: The specified module could not be found.*
    

    存在一些依赖性错误,我该如何解决它们

    安装numpy,scipy和matplotlib时说:无法创建密钥和设置密钥值

1 个答案:

答案 0 :(得分:0)

通过下载2个dll文件并在system32和syswow64中复制

解决了该问题

从另一个类似的stackoverflow问题得到了这个答案

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