简体   繁体   中英

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

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.

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

I would recommend using Intellij IDEA

As for the no MS Visual C++ you can download the missing requirement here

For mpi4py specifically have you tried:

pip install git+https://bitbucket.org/mpi4py/mpi4py ( from here )

I hope this helps.

error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/

according to this message goto the website, scroll down and download -> Older versions -> Redistributables and Build Tools -> Microsoft Build Tools 2015
install visualcppbuildtools_full.exe

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM