如何在 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 上使用 pip 安装 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.
有人有什么建议吗?
推荐答案
Pip 在 OS X 上使用 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 superpack,一堆预编译的二进制文件
- Enthought Canopy(免费或其他)已经拥有您需要的一切(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屋!
查看全文