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

Posted cbugs

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Fix Python 3 on Windows error Microsoft Visual C++ 14.0 is required相关的知识,希望对你有一定的参考价值。

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

 


Fix the error for Python on Windows:

error Microsoft Visual C++ 14.0 is required

as follows. Visual Studio Studio Build Tools requires about 3 GB of disk space.

Python versionVisual Studio
2.7, 3.4 2010
3.5 2015 / 2017
3.6, 3.7, 3.8 2017 / 2019

In mid-2019, most people will want VS2017, as that’s what most software is compatible with. We are seeing increasing adoption of VS2019 as we go into the second half of 2019.

  1. Install using any ONE of these choices:
  2. Select: Workloads → C++ build tools.
  3. Install options: select only the “Windows 10 SDK” (assuming the computer is Windows 10). Optionally, if you want to use MSVC cl.exe C/C++ compiler from the command line, additionally select the C++ build tools, which takes an additional 2 GB disk space.

Notes

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 requires Visual C++ SDK as installed above. On Linux and Mac, the C++ libraries are installed with the compiler.

Reference

This was the former link to Microsoft Visual C++ Build Tools–no longer active:https://landinghub.visualstudio.com/visual-cpp-build-tools

原文链接:https://www.scivision.dev/python-windows-visual-c-14-required/

Note  我默认下载了1.2G

以上是关于Fix Python 3 on Windows error Microsoft Visual C++ 14.0 is required的主要内容,如果未能解决你的问题,请参考以下文章

How to Fix “Failed to play test tone” error on Windows 7, 8 and 10

Windows ->> FIX: “The security database on the server does not have a computer account for thi

python manage.py makemigrat Please select a fix: 1) Provide a one-off default now (will be set on

python install on windows 10

怎么最简单提交linux kernel的bug fix

Install Python 3.5.1 on Windows