Environment: Python 2.7.5 & Centos 7
I have successfully installed airflow using:
pip install apache-airflow
But when I run
airflow initdb
,
it says:
Traceback (most recent call last):
File "/usr/bin/airflow", line 21, in <module>
from airflow import configuration
File "/usr/lib/python2.7/site-packages/airflow/__init__.py", line 35, in <module>
from airflow import configuration as conf
File "/usr/lib/python2.7/site-packages/airflow/configuration.py", line 38, in <module>
from backports.configparser import ConfigParser
ImportError: No module named configparser
What am I missing?
The issue is you have installed a wrong package. airflow
was renamed to apache-airflow
from 1.8.1. The website you used has outdated docs.
Please install using the following command
export AIRFLOW_GPL_UNIDECODE=yes
pip install apache-airflow
This should install 1.10.0 which is the latest stable version and resolve your issues.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.