我正在尝试在mac上安装mpi4py,但我遇到了以下错误:
搜索mpi4py
Best match: mpi4py 1.2.2
Downloading http://mpi4py.googlecode.com/files/mpi4py-1.2.2.tar.gz
Processing mpi4py-1.2.2.tar.gz
Running mpi4py-1.2.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-HNJHvI/mpi4py-1.2.2/egg-dist-tmp-eL_Hte
Compiling with an SDK that doesn't seem to exist: /Developer/SDKs/MacOSX10.5.sdk Please check your Xcode installation
_configtest.c:1:20: error: stdlib.h: No such file or directory
error: Setup script exited with error: Cannot compile/link MPI programs. Check your configuration!!!
请注意我之前安装了openmpi。
任何人都知道解决方案是什么?
答案 0 :(得分:0)
错误信息非常清楚,它查找MacOSX10.5.sdk,您必须从XCode安装它(它在安装程序选项中)。
要安装它,请尝试以下操作:
在做这些痛苦的事情之前编辑你可能想要阅读Mac OS X and Universal/SDK Python builds