在Windows中安装Python 3.8和dbt后无法获取~/.dbt/文件夹或profiles.yml文件

San*_*wad 2 windows installation configuration python-3.x dbt

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

\n

Python 3.8 安装在以下路径 C:\\Users MyName \\AppData\\Local\\Programs\\Python\\Python38 中,从 \xe2\x80\x9c 下载并安装 https://www.python.org/ftp /python/3.8.5/python-3.8.5-amd64-webinstall.exe\xe2\x80\x9d

\n

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

\n

“pip 安装 dbt”

\n

毕竟,当我寻找 \xe2\x80\x9c~/.dbt/\xe2\x80\x9d 文件夹或 \xe2\x80\x9cprofiles.yml\xe2\x80\x9d 文件时\n我无法在任何地方找到

\n

我无法在 C://Users/MyName/ 下找到 \xe2\x80\x9c~/.dbt/\xe2\x80\x9d 目录

\n

在此输入图像描述

\n

gsc*_*ott 5

您尝试过dbt init在 python 环境中运行吗?我相信这是创建这些项目的触发因素。

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

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

我的内容是:

usr/.dbt
      | .user.yml
      | profiles.yml
Run Code Online (Sandbox Code Playgroud)

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

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

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

信息:Windows 10、Python 3.7.x


Paw*_*wel 5

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

示例profiles.yml位于https://docs.getdbt.com/dbt-cli/configure-your-profile/