Is there a Microsoft Visual C++ Compiler for Python 3.7.1?

S.Sadula picture S.Sadula · Feb 11, 2019 · Viewed 14.9k times · Source

I know that there is a "Microsoft Visual C++ Compiler for Python 3.4" but is there, currently or planned, a Microsoft Visual C++ Compiler for Python 3.7? My problem is that when I try to install mpi4py it fails to build a wheel.

Answer

Daniel picture Daniel · Oct 2, 2019

If you only need to install package mpi4py then you can download already built binary from Unofficial Windows Binaries for Python Extension Packages website and install it with pip. Take care which version you are download, it needs to be appropriate for your python, but you will get informative error even if you pick the wrong one.

Install package using:

python -m pip install path_to_whl/mpi4py‑3.0.2‑cp36‑cp36m‑win_amd64.whl