Fix Python 3 on Windows error Microsoft Visual C++ 14.0 is required

Related: Fix Python 2 error Visual C++ 10.0 missing vcvarsall.bat


Fix the error for Python 3.5 and Python 3.6 on Windows

error Microsoft Visual C++ 14.0 is required

by:

  1. Download and Install Microsoft Visual C++ Build Tools 2015
  2. Install options: select the appropriate “Windows SDK”:

    Windows OS SDK
    Windows 7 Windows 8.1
    Windows 8.1 Windows 8.1
    Windows 10 Windows 10

Notes

Python version Visual Studio
2.7, 3.4 2010
3.5, 3.6 2015
3.7 2017

Why is Visual C++ SDK needed for Python on Windows?

Windows Python needs Visual C++ libraries installed via the SDK to build code, such as via setuptools.extension.Extension or numpy.distutils.core.Extension. For example, building f2py modules in Windows with Python 3 requires Visual C++ SDK as installed above. On Linux and Mac, these libraries are installed with the compiler.

References

Leave a Comment