I am trying to use Mpi4py 1.3 with python 2.7 on Windows 7 64bits. I downloaded the installable version from here which includes OpenMPI 1.6.3 so in the installed directory
I had the same issue and no answer solved the issue.
For me, the following solved the problem. I compiled and installed the mpi4py manually as follows:
C:\Program Files (x86)\Microsoft SDKs\MPI\Lib and C:\Program Files (x86)\Microsoft SDKs\MPI to your Windows environment variables (not sure if needed)C:\Program Files (x86)\Microsoft Visual Studio 14.0\.... although I use VS2017 currently.git clone https://github.com/mpi4py/mpi4py.gitcd mpi4pypython -m pip install Cythonpython setup.py buildpython setup.py installMy setting: