I'm fairly new to this, so I apologize if this is a bit of a dumb question, but...
I tried to use pip to install mpi4py. But I get the following:
client41-on-cinque:~ minerd$ pip install mpi4py
Downloading/unpacking mpi4py
Running setup.py egg_info for package mpi4py
Installing collected packages: mpi4py
Running setup.py install for mpi4py
MPI configuration: [mpi] from 'mpi.cfg'
MPI configuration: [mpi] from 'mpi.cfg'
checking for MPI compile and link ...
checking for header 'mpi.h' ...
xcrun clang -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _configtest.c -o _configtest.o
_configtest.c:2:10: fatal error: 'mpi.h' file not found
#include <mpi.h>
^
1 error generated.
failure.
removing: _configtest.c _configtest.o
failure.
error: Cannot find 'mpi.h' header. Check your configuration!!!
Complete output from command /usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c "import setuptools;__file__='/private/var/folders/1v/f0jkxc6n10x_wywlx9dvp0v00000gn/T/pip-build-minerd/mpi4py/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/1v/f0jkxc6n10x_wywlx9dvp0v00000gn/T/pip-fD8igT-record/install-record.txt --single-version-externally-managed:
running install
running build
running build_src
running build_py
running build_clib
MPI configuration: [mpi] from 'mpi.cfg'
running build_ext
MPI configuration: [mpi] from 'mpi.cfg'
checking for MPI compile and link ...
checking for header 'mpi.h' ...
xcrun clang -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _configtest.c -o _configtest.o
_configtest.c:2:10: fatal error: 'mpi.h' file not found
#include <mpi.h>
^
1 error generated.
failure.
removing: _configtest.c _configtest.o
failure.
error: Cannot find 'mpi.h' header. Check your configuration!!!
----------------------------------------
Command /usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c "import setuptools;__file__='/private/var/folders/1v/f0jkxc6n10x_wywlx9dvp0v00000gn/T/pip-build-minerd/mpi4py/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/1v/f0jkxc6n10x_wywlx9dvp0v00000gn/T/pip-fD8igT-record/install-record.txt --single-version-externally-managed failed with error code 1 in /private/var/folders/1v/f0jkxc6n10x_wywlx9dvp0v00000gn/T/pip-build-minerd/mpi4py
Storing complete log in /Users/minerd/.pip/pip.log
client41-on-cinque:~ minerd$
I found only one reference to such an error in the group archives, and the problem ended up being an issue with mpicc <--> openmpicc, which doesn't seem to apply here. Any thoughts? Thanks.