我试图在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。
有人知道解决办法是什么吗?
发布于 2011-12-05 12:37:57
错误消息非常清楚,它查找MacOSX10.5.sdk,您必须从XCode安装它(它在安装程序选项中)。
要安装它,请尝试以下步骤:
在做这些痛苦的事情之前,编辑您可能想要阅读 Mac和Universal/SDK Python构建
https://stackoverflow.com/questions/8385040
复制相似问题