mpi4py 在 Mac 中的安装
我正在尝试在 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。
任何人都知道解决方案是什么?
I'm trying to install mpi4py on mac, but I've faced with below error:
Searching for 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!!!
Note that I installed openmpi before.
Any body knows what's the solution?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
错误消息非常清楚,它寻找MacOSX10.5.sdk,你必须从XCode安装它(它在安装程序选项中)。
要安装它,请尝试以下操作:
在做这个痛苦的事情之前编辑你可能想阅读Mac OS X 和通用/ SDK Python 构建
Error message is pretty clear, it looks for MacOSX10.5.sdk, you have to install it from XCode (it's in the installer options).
To install it try the following:
EDIT before doing this painful stuff you might want to read Mac OS X and Universal/SDK Python builds