0

I maintain Python packages on my system (OS 10.9) with pip, and when I try to load matplotlib I get a version error, suggesting that my installation process has built matplotlib using a newer version of numpy than is on my system. I'm not sure how this is possible (there's only one version of numpy on my system, and that's the one that was present when matplotlib was installed, all my versions are current according to yolk and pip, and I have all the latest Xcode ommand line tools from Apple, and only one, correct Python — Apple 2.7.5 — in my path), but for good measure, I've uninstalled and reinstalled both numpy and matplotlib, in that order, to no avail. I've seen many other questions here about similar Scipy stack versioning issues and wonder:

Is there a particular order in which elements of the Scipy stack should be built/installed to ensure that correct versions are available to satisfy dependencies? Perhaps there are pip options I can use to ensure that such version errors don't happen?

4

2 回答 2

1

顺序是:先numpy,否则没关系。只有 Numpy 有 C API。

于 2013-10-29T18:44:18.413 回答
-1

我的理解是 mac 没有内置的包管理器,这就是为什么 scipy 建议安装 MacPorts:scipy.org/install.html

于 2014-01-14T23:13:00.780 回答