首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >为什么安装dbt失败?-树座的建筑车轮失灵

为什么安装dbt失败?-树座的建筑车轮失灵
EN

Stack Overflow用户
提问于 2021-06-08 12:48:38
回答 2查看 1.3K关注 0票数 1

我正在尝试将dbt工具安装到窗口10。这里安装了Python3.9和VS2019。(我不知道为什么需要)

我得到了奇怪的错误,我想知道错误和应该做什么:

命令:

代码语言:javascript
复制
git clone https://github.com/fishtown-analytics/dbt.git
cd dbt
pip install -r requirements.txt

错误:

代码语言:javascript
复制
  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
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2021-06-08 13:11:40

dbt的当前开发版本(develop分支,或可安装为v0.20.0rc1)需要两个新的依赖项:

  • tree-sitter==0.19.0
  • tree-sitter-jinja2==0.1.0a1

第一个是tree-sitter,要求您在系统上安装一个C编译器。查看GitHub:https://github.com/fishtown-analytics/dbt/issues/3433上的相关问题

我们将考虑如何使这一安装体验更加顺畅。同时,您可以使用安装GCC,然后再次尝试从源安装dbt。

票数 2
EN

Stack Overflow用户

发布于 2021-06-27 21:04:11

我对时间的建议是坚持以前的版本(在发表本评论时是稳定的0.19.0 ),因为在这个场景中,安装依赖项花费了大量时间,而且还因为建议不要在默认python包中安装dbt,而是在虚拟env中安装ratter。

所以,从短期来看

代码语言:javascript
复制
pip install dbt==0.19.0
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/67887293

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档