Fix the error for Python 3.6, 3.7 and 3.8 on Windows:
error Microsoft Visual C++ 14.0 is required
as follows. Visual Studio Studio 2019 Build Tools requires about 3 GB of disk space.
- Install using any ONE of these choices:
- Select: Workloads → C++ build tools.
- Install options: select only the “Windows 10 SDK” (assuming the computer is Windows 10). Optionally, if you want to use MSVC
cl.exeC/C++ compiler from the command line, additionally select the
MSVC 2019 C++ build tools, which takes an additional 1.5 GB disk space. If you need VS2017 C++ Build Tools, this is another 2.5 GB disk space.
|Python version||Visual Studio|
|3.5||2015 / 2017|
|3.6, 3.7, 3.8||2017 / 2019|
Why Visual C++?
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: