我正在使用Windows 64位操作系统,基于x64的处理器
Python 3.8安装在以下路径C:\UsersMyName\AppData\Local\Programs\Python38中,该路径可从"https://www.python.org/ftp/python/3.8.5/python-3.8.5-amd64-webinstall.exe">
dbt使用以下命令安装在CLI中
"pip安装dbt";
在所有这些之后,当我查找"~/.dbt/"文件夹或"profiles.yml"文件时我在任何地方都找不到
我在C:\//Users/MyName/下找不到"~/.dbt/"目录
在此处输入图像描述
您是否尝试过在python环境中运行dbt init
?我相信这是创建这些项目的导火索。
(请参阅此处的文档:https://docs.getdbt.com/reference/commands/init/)
此外,我不认为应该有任何东西阻止你自己创建目录和项目。
我的内容是:
usr/.dbt
| .user.yml
| profiles.yml
在CCD_ 2文件只包含一个";id";字符串映射。
profiles.yml
包含文档参考的完整布局:
https://docs.getdbt.com/dbt-cli/configure-your-profile/
信息:Windows 10,Python 3.7.x
运行dbt debug --config-dir
以找出dbt在您的机器上期望profiles.yml
的位置,然后创建包括profiles.yml
文件的位置。
样品profiles.yml
可在https://docs.getdbt.com/dbt-cli/configure-your-profile/
如果您希望在运行项目的目录中创建profiles.yml,请使用以下代码
dbt init --profiles-dir .