gunicorn 在运行 apache 气流网络服务器时出错

时间:2021-03-15 14:56:22

标签: python linux airflow gunicorn

当我尝试初始化 apache 气流网络服务器时。我收到此错误:

FileNotFoundError: [Errno 2] No such file or directory: 'gunicorn': 'gunicorn'

当我这样做时,这个问题就解决了:

export PATH=$PATH:/python-env/bin
  1. 为什么上面的行可以解决错误?

  2. 我该怎么做才能不必每次都导出 PATH?

1 个答案:

答案 0 :(得分:0)

我遇到了同样的错误,所以感谢您的解决方法。我已将其合并,我的建议是将 PATH 连接到 /etc/sysconfig/airflow(或用于 Service 中的 EnvironmentFile 定义的另一个文件)