提问者:小点点

QuTip 安装错误 MacOsX 10.6.8 for Python


我正在尝试在我的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个答案

匿名用户

最有可能的答案是 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