我正在尝试在我的MacOsX 10.6.8上安装python的QuTip模块。在下载.gz文件并在temrinal中运行python setup.py install命令后,我得到了以下错误,我不理解它(即使在在线查找后也是如此):
错误:命令"gcc-4.2 -fno-严格-别名-fno-通用原型-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/ /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypesinclude -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 build/temp.macosx-10.6-intel-2.7/qutip/cy/spmatfuncs.o qutip/cy/spmatfuncs.c -c -o -w --c--o -O3 -march=native -mfpmath=sse“failed with exit status 1
非常感谢!
发布于 2014-12-05 10:03:51
最有可能的答案是,捆绑在10.6开发工具中的GCC版本太旧了。您可以尝试通过macports安装qutip。
http://qutip.org/docs/3.0.1/installation.html#installation-on-mac-os-x-10-6
看看这是否解决了这个问题。另外,在未来,最好在qutip帮助组板上发布问题:
https://stackoverflow.com/questions/27300388
复制相似问题