I am getting "bash: airflow: command not found"

Md Sirajus Salayhin picture Md Sirajus Salayhin · Jul 1, 2018 · Viewed 17.5k times · Source

I am getting

-bash: airflow: command not found

after installing Apache Airflow. I am using Google Cloud Compute Engine and OS is Debian 9 (Stretch).

I have followed the below steps:

export AIRFLOW_HOME=~/airflow

pip install apache-airflow

Answer

Md Sirajus Salayhin picture Md Sirajus Salayhin · Jul 6, 2018

I have uninstalled Apache Airflow and installed it with the sudo command (i.e., sudo pip install apache-airflow). After that it worked fine.