0

我正在尝试开展一个新项目,并且我对可以真正帮助我的 Data Cube 感到兴奋。

为了使用它并尝试使用它,我在官方网站上按要求安装了 postgres:https ://datacube-core.readthedocs.io/en/datacube-1.4.1/ops/db_setup.html

尝试使用此命令初始化数据集时:

datacube -v system init

我收到错误:“错误:未找到数据立方体配置”

根据要求,我添加了 env var 并尝试将配置文件放在任何地方(主目录、默认值、当前...)

配置文件:

[datacube]
db_database: datacube

# A blank host will use a local socket. Specify a hostname (such as localhost) to use TCP.
db_hostname:

# Credentials are optional: you might have other Postgres authentication configured.
# The default username otherwise is the current user id.
db_username: postgres 
db_password: postgres 

我正在使用带有 conda、python 3.8 的 Windows 10,

你知道我错过了什么吗?TIA

4

1 回答 1

0

如文档中所述 -

Datacube 在 ~/.datacube.conf 或 DATACUBE_CONFIG_PATH 环境变量指定的位置查找配置文件。

确保您的文件名是 datacube.conf 并且它位于正确的路径中

于 2022-02-26T07:10:50.320 回答