简体   繁体   English

airflow安装无法initdb

[英]airflow install cannot initdb

I'm reinstalling aiflow (after running pip uninstall apache-airflow ) 我正在重新安装aiflow(在运行pip uninstall apache-airflow airflow之后)

Following the airflow's quick start guide I run: 按照气流的快速入门指南运行:

export AIRFLOW_HOME=~/airflow

# install from pypi using pip
pip install apache-airflow

# initialize the database
airflow initdb

However I see 但是我看到

bash: /usr/local/bin/airflow: No such file or directory bash:/ usr / local / bin / airflow:没有这样的文件或目录

How can I initialize the airflow db? 如何初始化气流数据库?

Just a note for folks who reach here for the same query, wondering why airflow initdb is not working. 只是对到达此处进行相同查询的人员的说明,想知道为什么气流initdb无法正常工作。 With future version of airflow you might have to do airflow db {init, reset, upgrade}. 对于未来版本的airflow,您可能必须进行airflow db {init,reset,upgrade}。 So for initializing airflow db it will be [ airflow db init ] instead of [ airflow initdb ]. 因此,为了初始化气流db,将使用[ airflow db init ]代替[ airflow initdb ]。

该安装与sudo pip install apache-airflow一起使用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM