python3
$ sudo /cluster/software/python-3.7.0/bin/pip3 install apache-airflow[all]
报错: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-kdrobbz6/apache-airflow/
解决:$ sudo /cluster/software/python-3.7.0/bin/pip3 install --upgrade setuptools 失败
大坑
====================================
python2
$ /cluster/software/python-2.7.14/lib/python2.7/site-packages/airflow/bin/airflow webserver -p 8080
报错:Error: 'python:airflow.www.gunicorn_config' doesn't exist
解决: 前面加sudo执行。 参考:https://stackoverflow.com/questions/48017804/web-server-of-airflow-is-not-running