【问题标题】:QuTip installation error MacOsX 10.6.8 for PythonQuTip 安装错误 MacOsX 10.6.8 for Python
【发布时间】:2015-02-02 16:59:47
【问题描述】:

我正在尝试在我的 MacOsX 10.6.8 上安装适用于 python 的 QuTip 模块。下载 .gz 文件并在终端运行 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

非常感谢!

【问题讨论】:

    标签: python python-2.7


    【解决方案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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-09-11
      • 2012-09-29
      • 1970-01-01
      • 1970-01-01
      • 2015-09-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多