Fix the error for Python on Windows:
error Microsoft Visual C++ 14.0 is required
Install using any ONE of these choices:
- Microsoft Build Tools for Visual Studio.
- Alternative link to Microsoft Build Tools for Visual Studio.
- Offline installer: vs_buildtools.exe
Select: Workloads → Desktop development with C++, then for Individual Components, select only:
- Windows 10 SDK
- C++ x64/x86 build tools
The build tools allow using MSVC “cl.exe” C / C++ compiler from the command line.
Why this is necessary
Windows Python needs Visual C++ libraries installed via the SDK to build code, such as via
For example, building
modules in Windows with Python requires Visual C++ SDK as installed above.
On Linux and Mac, the C++ libraries are installed with the compiler.
This was the former link to Microsoft Visual C++ Build Tools–no longer active:
- Python / Visual Studio build matrix