Error while install airflow: By default one of Airflow's dependencies installs a GPL
Solution 1:
Try the following:
export AIRFLOW_GPL_UNIDECODE=yes
OR
export SLUGIFY_USES_TEXT_UNIDECODE=yes
Using export
makes the environment variable available to all the subprocesses.
Also, make sure you are using pip install apache-airflow[postgres]
and not pip install airflow[postgres]
Which should you use: if using AIRFLOW_GPL_UNIDECODE, airflow will install a dependency that is under GPL license, which means you won't be able to distribute your resulting application commercially. If that's a problem for you, go for SLUGIFY_USES_TEXT_UNIDECODE.
Solution 2:
If you are installing using sudo run one of these commands:
sudo AIRFLOW_GPL_UNIDECODE=yes pip3 install apache-airflow
OR
sudo SLUGIFY_USES_TEXT_UNIDECODE=yes pip3 install apache-airflow
NOTE: If pip3
(python3) does not work for you, try pip
command.
The pip
command can be pointing to python2 or python3 installation depending on your system. Verify this by running pip --version
.