微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

如何将 C++ 和 Tree_sitter 安装到 Windows 10? - 需要 Microsoft Visual C++ 14.0 或更高版本

如何解决如何将 C++ 和 Tree_sitter 安装到 Windows 10? - 需要 Microsoft Visual C++ 14.0 或更高版本

我不知何故缺少 Windows 10 中的 C/C++,不知道如何安装。

我的最终目标是将 dbt 工具安装到 Window 10。安装了 Python 3.9 和 VS2019。想知道为什么 VS2019 没有提供所需的功能

命令:

git clone https://github.com/fishtown-analytics/dbt.git
cd dbt
pip install -r requirements.txt

错误

  ERROR: Command errored out with exit status 1:
   command: 'c:\users\my.name\appdata\local\programs\python\python39\python.exe' 
 'c:\users\my.name\appdata\local\programs\python\python39\lib\site- 
packages\pip\_vendor\pep517\in_process\_in_process.py' build_wheel 
 'C:\Users\MY~1.NAME\AppData\Local\Temp\tmpzybnxyld'
       cwd: C:\Users\my.name\AppData\Local\Temp\pip-install-l8pl5jty\tree- 
 sitter_f257da752ba04b9dacbc947d2d743146
  Complete output (10 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.9
  creating build\lib.win-amd64-3.9\tree_sitter
  copying tree_sitter\__init__.py -> build\lib.win-amd64-3.9\tree_sitter
  running build_ext
  **building 'tree_sitter.binding' 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/
  ----------------------------------------
  ERROR: Failed building wheel for tree-sitter

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。