用于Python的Quot安装错误MacOsX 10.6.8

时间:2014-12-04 17:35:05

标签: python python-2.7

我正在尝试在我的MacOsX 10.6.8上安装python的QuTip模块。下载.gz文件并在temrinal中运行python setup.py install命令后,我收到以下错误,我不明白(即使在网上查找后):

错误:命令“gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I / Library / Frameworks / Python.framework / Versions / 2.7 / lib / python2.7 / site-packages / numpy / core / include -I / Library / Frameworks / Python.framework / Versions / 2.7 /lib/python2.7/site-packages/numpy/core/include -I / Library / Frameworks / Python.framework / Versions / 2.7 / lib / python2.7 / site-packages / numpy / core / include -I / Library /Frameworks/Python.framework/Versions/2.7/include/python2.7 -c qutip / cy / spmatfuncs.c -o build / temp.macosx-10.6-intel-2.7 / qutip / cy / spmatfuncs.o -w -ffast -math -O3 -march = native -mfpmath = sse“失败,退出状态为1

非常感谢!

1 个答案:

答案 0 :(得分:0)

最可能的答案是,10.6开发人员工具中捆绑的GCC版本太旧了。您可以尝试通过macports安装qutip

http://qutip.org/docs/3.0.1/installation.html#installation-on-mac-os-x-10-6

看看是否能解决问题。此外,在将来,最好在qutip帮助小组委员会上发布问题:

https://groups.google.com/forum/#!forum/qutip