简体   繁体   English

如何在Moutain Lion上为Python 3.3安装Numpy&Scipy

[英]How to install Numpy & Scipy for Python 3.3 on Moutain Lion

Haven't found a working solution as of yet. 尚未找到可行的解决方案。 I have three different versions of Python on my system, the default bundled with OSX (2.7.2), 2.7.3 installed via homebrew and 3.3.0 installed via homebrew. 我的系统上有三个不同版本的Python,默认版本与OSX(2.7.2)捆绑在一起,通过Homebrew安装的2.7.3和通过Homebrew安装的3.3.0。 Running pip install numpy or pip install scipy will install it for the 2.7.3 version. 运行pip install numpypip install scipy将其安装为2.7.3版本。

How can I install numpy and scipy for Python 3.3.0 on Moutain Lion? 如何在Moutain Lion上为Python 3.3.0安装numpy和scipy?

you need to call pip3 instead of pip. 您需要调用pip3而不是pip。 Homebrew installs pip3 with python3. Homebrew使用python3安装pip3。

I just tried pip3 install numpy on my OSX 10.7.5 python 3.3.0 machine and it failed. 我刚在OSX 10.7.5 python 3.3.0机器上尝试过pip3 install numpy ,但失败了。 It looks like numpy v1.6 is not compatible but numpy v1.7 (beta, not available via pip3) is. 看起来numpy v1.6不兼容,但是numpy v1.7(测试版,无法通过pip3获得)是兼容的。

Link: A post on SO: Why does installing numpy using pip fail while building directly does not 链接:关于SO的文章: 为什么在直接构建时使用pip安装numpy失败,却没有

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM