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/
      INFO: CCompilerOpt.cache_flush[864] : write cache to path -> C:\Windows\Temp\pip-install-1_46q5co\lap_dedc8a6bde714b8fa24482aa0f160327\build\temp.win-amd64-cpython-310\Release\ccompiler_opt_cache_ext.py
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for lap
  Running setup.py clean for lap
Failed to build lap
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (lap)

报错原因

因为pip所安装的包需要使用C++编译后才能够正常安装,但是当前安装环境中缺少完整的C++编译环境,因此安装失败。

这样解决方案就很明确了,安装完整的C++编译环境即可解决。

最后下载了一个vs解决

Logo

技术共进,成长同行——讯飞AI开发者社区

更多推荐