【问题标题】:Unable to get ~/.dbt/ folder or profiles.yml file after installing Python 3.8 and dbt in Windows在 Windows 中安装 Python 3.8 和 dbt 后无法获取 ~/.dbt/ 文件夹或 profiles.yml 文件
【发布时间】:2020-07-28 04:57:09
【问题描述】:

我正在使用 Windows 64 位操作系统,基于 x64 的处理器

Python 3.8 安装在路径 C:\UsersMyName\AppData\Local\Programs\Python\Python38 下,从“https://www.python.org/ftp”下载并安装/python/3.8.5/python-3.8.5-amd64-webinstall.exe”

使用以下命令在 CLI 中安装 dbt

“点安装 dbt”

当我寻找“~/.dbt/”文件夹或“profiles.yml”文件时 我在任何地方都找不到

我在 C://Users/MyName/ 下找不到“~/.dbt/”目录

enter image description here

【问题讨论】:

    标签: python-3.x windows installation configuration dbt


    【解决方案1】:

    你试过在 python 环境中运行dbt init 了吗? 我相信这是创建这些项目的触发器。

    (请参阅此处的文档:https://docs.getdbt.com/reference/commands/init/

    另外 - 我不认为应该有任何东西阻止您自己创建目录和项目。

    对我来说内容是:

    usr/.dbt
          | .user.yml
          | profiles.yml
    

    .user.yml 文件仅包含“id”字符串映射。

    profiles.yml 包含文档参考的完整布局:

    https://docs.getdbt.com/dbt-cli/configure-your-profile/

    信息:Windows 10、Python 3.7.x

    【讨论】:

      【解决方案2】:

      运行 dbt debug --config-dir 以找出 dbt 在您的计算机上期望 profiles.yml 的位置,然后创建该位置,包括 profiles.yml 文件。

      样品profiles.yml 可在https://docs.getdbt.com/dbt-cli/configure-your-profile/ 获得

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2022-10-20
        • 1970-01-01
        • 2021-12-02
        • 2022-10-15
        • 1970-01-01
        • 2022-10-18
        • 2023-01-26
        • 2022-10-14
        相关资源
        最近更新 更多