Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/283.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 2.5。。。。MatPlotLib不';t安装PyLab_Python_Matplotlib_Installation_Python 2.5 - Fatal编程技术网

Python 2.5。。。。MatPlotLib不';t安装PyLab

Python 2.5。。。。MatPlotLib不';t安装PyLab,python,matplotlib,installation,python-2.5,Python,Matplotlib,Installation,Python 2.5,我已经安装了NumPy和SciPy并正在工作。我使用的是Python2.5(麻省理工学院编程课程简介),所以我一直在安装带有.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\Removematplotli

我已经安装了NumPy和SciPy并正在工作。我使用的是Python2.5(麻省理工学院编程课程简介),所以我一直在安装带有.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.
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
进口派拉布
文件“C:\Python25\Lib\site packages\pylab.py”,第1行,在
从matplotlib.pylab导入*
文件“C:\Python25\Lib\site packages\matplotlib\pylab.py”,第216行,在
从matplotlib导入mpl#拉入大多数模块
文件“C:\Python25\Lib\site packages\matplotlib\mpl.py”,第1行,在
从matplotlib导入艺术家
文件“C:\Python25\Lib\site packages\matplotlib\artist.py”,第6行,在
从转换导入Bbox、标识转换、转换Bbox、转换路径
文件“C:\Python25\Lib\site packages\matplotlib\transforms.py”,第34行,在
从matplotlib.\u路径导入仿射变换
ImportError:DLL加载失败:找不到指定的模块。
我在不同的留言板上浏览过,但找不到其他有此问题的人。
有什么想法吗?

也许是坏包?另外,请尝试从安装,Python 2.5已过时且不受支持。考虑使用Python 2.7,它是向后兼容的。MPL 1.0.0也不再支持。您所犯的错误来自未安装已编译的c扩展,或者未按照错误的windows/compilers/stuff版本进行编译。