I am getting “bash: airflow: command not found”

前端 未结 4 1977
情深已故
情深已故 2021-01-17 15:13

I am getting

-bash: airflow: command not found

after installing Apache Airflow. I am using Google Cloud Compute Engine and OS is Deb

相关标签:
4条回答
  • 2021-01-17 15:51

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

    0 讨论(0)
  • 2021-01-17 15:56

    Post install, re-load environment variable and you are good to go.

    0 讨论(0)
  • 2021-01-17 16:00

    Where does your pip install Apache Airflow to? It could be to /usr/local/bin or similar.

    Make sure that that directory is in your $PATH.

    This isn't related to Apache Airflow, just your environment setup.

    0 讨论(0)
  • 2021-01-17 16:02

    If installed with sudo, as mentioned by Sirajus, it will be placed in /usr/local/bin/.

    Without sudo, it will be placed in the ~/.local/bin/ folder. This folder will not be added to the PATH environment variable automatically.

    So you can either add it to the PATH environment variable or install it using sudo.

    0 讨论(0)
提交回复
热议问题