如何在Mac Mountain Lion OS X v10.8上使用pip安装Scipy [英] How to install Scipy with pip on Mac Mountain Lion OS X v10.8
本文介绍了如何在Mac Mountain Lion OS X v10.8上使用pip安装Scipy的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我很难在Mountain Lion上用点子安装Scipy. 我尝试过:
I'm having serious difficulty installing Scipy with pip on Mountain Lion. I've tried:
sudo pip install -e git+https://github.com/scipy/scipy#egg=scipy-dev
如在网络上的各个地方所建议的那样.
As suggested in various places on the web.
这会导致以下错误:
ld: library not found for -lgcc
lipo: can't figure out the architecture type of: /var/tmp//ccC2HLVs.out
和在错误之前的一些警告(我认为是不严重的).
and several warnings (I assume not serious) before the errors.
有人有建议吗?
推荐答案
在OS X上,Pip通常难以进行scipy.从源代码安装并非易事,因此我建议您不要这样做.在OS X中,您有一些更好的选择:
Pip has difficulties with scipy on OS X in general. It is not trivial to install from the sources, so I advise against it. In OS X you have a few better options:
- Scipy超级包装,一堆预编译的二进制文件
- 思想冠层(免费或其他)已经拥有了您所需的一切(numpy, scipy,matplotlib等)
- Anaconda ,这是一个免费的科学python发行版,其中可能包含您可能需要的所有软件包
- MacPorts ,全面而灵活的软件包管理器,可让您安装和维护python发行版
- Homebrew ,它是OS X的另一种流行的程序包管理器
- Scipy superpack, a bunch of precompiled binaries
- Enthought Canopy (free or another) has already everything you'll need (numpy, scipy, matplotlib, etc.)
- Anaconda, a free scientific python distribution with probably all the packages you'll ever need.
- MacPorts, a comprehensive and flexible package manager that allows you to install and maintain a python distribution
- Homebrew, another popular package manager for OS X
这篇关于如何在Mac Mountain Lion OS X v10.8上使用pip安装Scipy的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文