【环境配置】解决Microsoft Visual C++ 14.0 or greater is required.

1 报错信息为

Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft C++ Build Tools”: https://visualstudio.microsoft.com/visual-cpp-build-tools/

2 解决方案

  • 首先进入 https://visualstudio.microsoft.com/zh-hans/visual-cpp-build-tools/

  • 然后点击 下载生成工具

    在这里插入图片描述

  • 运行下载之后的 vs_BuildTools.exe

    在这里插入图片描述

  • Win+R,输入winver查看系统版本

    在这里插入图片描述

    我这里写的是1904

    在这里插入图片描述

  • 选择 使用C++的桌面开发
  • 勾选win10,1904这个

    在这里插入图片描述

  • 点击安装

    在这里插入图片描述需要等待一定的时间

    安装完成后,重启计算机

本文来自网络,不代表协通编程立场,如若转载,请注明出处:https://net2asp.com/5b4d6e2ad4.html