我不知何故缺少 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