简体   繁体   中英

How to fix “ImportError: No module named json” in Ubuntu?

I'm having issues with Apache Airflow. I'm working on Windows, so I had to install Ubuntu. It seemed to work at first but now it gives me "ImportError: No module named json" when I run:

airflow initdb

Previously I did:

sudo apt-get install software-properties-common
sudo apt-add-repository universe
sudo apt-get update
sudo apt-get install python-pip
pip install apache-airflow

After that, I get python2.7.15+

I'm not sure what I actually did wrong, as I've already managed to run Airflow, but then I had to reset everything and redo. And now I have this problem with json. Would be really grateful if somebody could help me with it.

只需升级烧瓶:

pip install --upgrade Flask

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM