ERROR: Could not build wheels for pysptk, which is required to install pyproject.toml-based projects

请参考
https://blog.csdn.net/m0_56190554/article/details/129296269
报错

      building 'pysptk._sptk' extension
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/   
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pysptk
Failed to build pysptk
ERROR: Could not build wheels for pysptk, which is required to install pyproject.toml-based projects

解决:

  1. 进入 vs官网,下载安装

ERROR: Could not build wheels for pysptk, which is required to install pyproject.toml-based projects_第1张图片

  1. 成功安装后,还要安装以下内容:

ERROR: Could not build wheels for pysptk, which is required to install pyproject.toml-based projects_第2张图片

  1. 重新执行 pip, 成功下载!

注意一定勾选上“使用C++的桌面开发”,只安装 MSBuild工具 是没用的, 我已经帮大家验证过了,然后“使用C++的桌面开发”中的可选内容,我没有测试需要哪一个,我使用的是默认的前五个,你们有兴趣可以自己试试不勾选,然后看看报不报错。

你可能感兴趣的:(vscode,python)