I am installing apache airflow as per the installation steps provided at https://airflow.apache.org/start.html#quick-start
First Step - export AIRFLOW_HOME=~/airflow
(No error)
Second Step - pip install apache-airflow
(No error)
Third Step - airflow initdb
( Error - ImportError: cannot import name '_psutil_linux'
)
Detailed of error is shown in below image:
Environment detail is as below-
How should I go on resolving it? I have already tried updating pip and installing python-dev but that does not work.
I've overcome this problem through the following command:
pip install -U --ignore-installed psutil
This works if you have installed psutil
by pip
, otherwise, try via apt
in Ubuntu:
apt-get update
apt-get --only-upgrade install python-psutil
apt-get install python-psutil
installing python-dev
will do the job
if you are running ubuntu then sudo apt-get install python-dev
or simply running pip install -U psutil
should do the job.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With