1

Trying to install mpi4py and having an issue when I run

easy_install mpi4py

and get:

error: Setup script exited with error: Unable to find vcvarsall.bat

From reading literature on similar issues I figured it is a compiler issue, but I have no idea how to implement the fix mentioned in that problem. From mpi4py documentation I found

env MPICC=/path/to/mpicc easy_install mpi4py

I am on Windows and cmd doesn't allow me to run such command. I'm not too familiar with Windows command line, so dont know how to properly implement this fix, or is this even a correct fix?

easy_install mpi4py MPICC=/path/to/mpicc isnt an option as easy_install doesnt have an argument for passing down variables.

I am using OpenMPI

EDIT 1

vcvarsall.bat file is in my VS12 folder, so most likely it is the same issue as the outlined in above case. I am using Developer Command Prompt from VS12, and no luck either

1 Answer 1

1

I've never had luck getting python compiles to work on windows. Luckily I've never had a compelling need for it either. Can you try the unofficial binary installer?

If you need to install it to a virtualenv, first activate your virtualenv and then use easy_install "..." with the full path to the downloaded binary.

If you really need to compile it, you'll need to follow what all the other solutions say about getting compilation to work on windows.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks so much! I've been looking for something like this all day!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.