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 3.6 and 3.7 on Windows:

error Microsoft Visual C++ 14.0 is required

as follows. It requires about 6 GB of disk space (for Visual Studio Studio 2017 Build Tools).

  1. Install using any ONE of these choices:
  2. Select: Workloads → Visual C++ build tools.
  3. Install options: select only the “Windows 10 SDK” (assuming the computer is Windows 10)

Notes

Python versionVisual Studio
2.7, 3.42010
3.52015
3.6, 3.72017

 

Why Visual C++?

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

  • Python 3.6 & 3.7 Visual Studio 2017
  • Python / Visual Studio build matrix (link down) http://vstinner.readthedocs.io/cpython_windows.html
  • Visual Studio changed the Build Tools from being C++ specific in late 2017

 

引用:

https://www.scivision.co/python-windows-visual-c++-14-required/

转载于:https://www.cnblogs.com/lijavasy/p/9638962.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值