Windows上的Matplotlib安装问题



我的操作系统是64位Windows我的 Python 是 32 位的。我在 Eclipse 中使用 PyDev

我应该安装什么版本的 Matplotlib?

对于 32 位和 64 位,我都遇到问题:

我只是在努力运行这个小模块。

请帮忙!

以下是 Matplotlib 在 Windows 中与 Python 2.7 一起运行所需的下载:

numPy:http://sourceforge.net/projects/numpy/files/NumPy/1.9.0/numpy-1.9.0-win32-superpack-python2.7.exe/download

numpy 目前仅适用于 32 位格式的 Windows

检查您的 numpy 工作:

将 numpy 导入为 NPa = np.arange(10)一个

日期和六:CMD光盘\CD python27\scriptspip2.7 install python-dateutil

这也应该安装六个

Pyparsing和Pytz:pip2.7 安装解析pip2.7 安装 pytz

matplotlib:http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.4.3/windows/matplotlib-1.4.3.win32-py2.7.exe/download?use_mirror=liquidtelecom

检查你的 matplotlib 是否最终工作:

从 Matplotlib 导入 pyplotpyplot.plot([1, 2, 3, 4], [1, 4, 9, 16])pyplot.show()

希望这有帮助穆罕默德·赛义德

我在python 2.7 32位和Windows 7 64位上的matplotlib 32位上遇到了类似的问题。我记得我需要手动安装其他几个软件包,例如dateutil和pyparsing。您可能会发现以下链接很有用。

Matplotlib 安装的问题

或者,您可以从下面的链接使用编译的安装程序。您将需要以下依赖项:numpy,dateutil,pytz,pyparsing,six

用于 Python 扩展包的非官方 Windows 二进制文件作者:Christoph Gohlke

同样的问题在这里,不得不多次修复。我找到的最好的解决方案是...

(1) 如果您尚未安装 PIP,请按照 https://pip.pypa.io/en/latest/installing.html 上的说明进行安装(python.org 站点上引用)。

(2) 在这里安装带有非官方二进制文件的 numpy:http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy。

(3) 然后通过命令pip install matplotlib使用 PIP 安装 matplotlib这将正确安装所有依赖项(需要手动安装的numpy除外)。

最新更新