Question : ModuleNotFoundError: No module named ‘flask_cors’
Answered by : itsmycode
# If you are using Python 2 (Windows)
pip install Flask-Cors
# if you are using Python 3 (Windows)
pip3 install Flask-Cors
# If the pip is not set as environment varibale PATH
python -m pip install Flask-Cors
# If you are using Python 2 (Linux)
sudo pip install Flask-Cors
# if you are using Python 3 (Linux)
sudo pip3 install Flask-Cors
# In case if you have to easy_install
sudo easy_install -U Flask-Cors
# On Centos
yum install Flask-Cors
# On Ubuntu
sudo apt-get install Flask-Cors
# If you are installing it in Anaconda
conda install -c anaconda flask-cors
Source : https://itsmycode.com/no-module-named-flask-cors/ | Last Update : Wed, 10 Aug 22