【发布时间】:2014-09-25 20:05:18
【问题描述】:
我正在尝试安装 QGis(来自 Kyngchaos 包),但失败并出现错误“QGIS 需要 Matplotlib python 模块。”。
我很确定问题是我需要为 Apple 的系统 Python 安装 matplotlib,以便 QGis (see background) 可以找到它。
我对这个错误有点困惑,因为我只是在命令行打开python,它发现matplotlib没有任何问题:
$ python
>>> import matplotlib
>>>
我猜我打开的 Python 不是“Apple Python”——事实上which python 给了我/opt/local/bin/python。
但是如果我按照上面的答案查看/Library/Python/2.7/site-packages,我看不到matplotlib。
那么,我该如何为苹果的系统 Python 安装 matplotlib?
【问题讨论】:
-
你用什么来安装matplotlib?吉特? README.osx 中有一些说明可能会对您有所帮助。
标签: python matplotlib qgis