4

Problem: I want to install apache-airflow using the latest version of Apache-Airflow on Github with all the dependencies?

How can I do that using pip?

Also is it safe to use that in the production environment?

kaxil
  • 17,706
  • 2
  • 59
  • 78

3 Answers3

5

Using pip:

$ pip install git+https://github.com/apache/incubator-airflow.git@v1-10-stable

Yes, it is safe.

You will need gcc.

J_H
  • 17,926
  • 4
  • 24
  • 44
  • Will this also install the extra features like `yum install airflow[all]` ? refer to https://airflow.apache.org/installation.html – Fan Dec 07 '17 at 01:29
  • @Fan yes the square bracketed extras also go right after the what you're installing, so `git+https://github.com/apache/incubator-airflow.git@v1-10-stable[all]` same with removing the branch `@` or adding the egg name `#`. – dlamblin Nov 05 '18 at 02:22
4

I generally use this

$  pip install git+https://github.com/apache/incubator-airflow.git@v1-10-stable#egg=apache-airflow[async,crypto,celery,kubernetes,jdbc,password,postgres,s3,slack]

In this way I'm able able to install extra airflow features.

nicor88
  • 1,398
  • 10
  • 13
2

I found this more useful:

pip install git+git://github.com/apache/incubator-airflow.git

It installs the latest version in development.

kaxil
  • 17,706
  • 2
  • 59
  • 78
  • This command worked for me and I went from `v1.9.0` to `v2.0.0.dev0+incubating` just by running this command. I ran `sudo pip-3.6 install git+git://github.com/apache/incubator-airflow.git` since I'm using python 3.6. So the version I appear to have is the latest from here https://github.com/apache/incubator-airflow/releases – Kyle Bridenstine Aug 06 '18 at 18:55