Python 2.5 .... MatPlotLib没有安装PyLab

时间:2014-09-27 03:37:21

标签: python matplotlib installation python-2.5

我已安装和使用NumPy和SciPy。我使用的是Python 2.5(MIT Intro to Programming course),因此我一直在使用.exe文件而不是Pip或Anaconda安装软件包。使用MatPlotLib,我在安装过程中遇到以下错误:

could not create: matplotlib-py2.5
could not create: python 2.5 matplotlib-1.0.0 
could not set key value: "C:\Python25\Removematplotlib.exe" -u "C:\Python25\matplotlib-wininst.log"

我在Python的Lib / site-packages目录中有一个MatPlotLib文件夹。将matplotlib导入IDLE工作正常。但是当我尝试导入pylab时:

Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
    import pylab
  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 216, in <module>
    from matplotlib import mpl  # pulls in most modules
  File "C:\Python25\Lib\site-packages\matplotlib\mpl.py", line 1, in <module>
    from matplotlib import artist
  File "C:\Python25\Lib\site-packages\matplotlib\artist.py", line 6, in <module>
    from transforms import Bbox, IdentityTransform, TransformedBbox, TransformedPath
  File "C:\Python25\Lib\site-packages\matplotlib\transforms.py", line 34, in <module>
    from matplotlib._path import affine_transform
ImportError: DLL load failed: The specified module could not be found.

我在不同的留言板上环顾四周,但找不到其他任何有此问题的人。 有什么想法吗?

0 个答案:

没有答案