1

I am trying to install mpi4py in my Linux machine. I have recently installed anaconda 4.1.1 and according to their documentation the package is suppose to come with mpi4py 2.0.0. When I tried verifying with "conda list" I am not able to find the package in the list.

I have tried "pip install mpi4py" and I am getting an error like this "Failed building wheel for mpi4py" I had no luck with "easy_install mpi4py" as well.

Billal Begueradj
  • 20,717
  • 43
  • 112
  • 130
user6771484
  • 81
  • 2
  • 12
  • 3
    Which specific OS do you have?...also can you paste your full terminal output when you try `pip install mpi4py`, please? – Hackerman Aug 29 '16 at 19:36

2 Answers2

4

When installing mpi4py, your MPI binaries has to be on the PATH. That is, if you type e.g. which mpiexec and nothing comes up, you have to run

export PATH="/path/to/mpi/bin:${PATH}"

Now which mpiexec should print the path of the MPI executable, and so pip and conda should be able to locate MPI.

jmd_dk
  • 12,125
  • 9
  • 63
  • 94
2

It looks like you are missing a dependency. See this link for a possible explanation.

Community
  • 1
  • 1
jmlarson
  • 837
  • 8
  • 31