出现这种错误的原因就是未安装VC++ build tools2015,下载安装即可
| Python Version | You will need |
|---|---|
| 3.5 and later | Update: Install Visual Studio 2017, select the Python development workload and the Native development tools option. Visual C++ Build Tools 2015 or Visual Studio 2015 |
| 3.3 and 3.4 | Windows SDK for Windows 7 and .NET 4.0 (Alternatively, Visual Studio 2010 if you have access to it) |
| 2.6 to 3.2 | Microsoft Visual C++ Compiler for Python 2.7 |
解决Python编译错误

本文详细介绍了当使用Python 3.5及更高版本时,如何解决由于缺少VC++ BuildTools 2015而导致的编译错误。推荐安装Visual Studio 2017并选择Python开发工作负载和本地开发工具选项。对于不同版本的Python,提供了相应的环境配置建议。
1458





