0
votes

i use this code install flask

pip install flask
pip3 install flask

i import flask like this

from flask import Flask
from flask_ask import Ask, statement, question, session

when i try to run

python test.py
python3 test.py

both are give this error

from flask_ask import Ask, statement, question, session
ImportError: No module named flask_ask

try all this code

python3.6 -m pip install flask_openid
sudo apt-get install python-flask

its not solve my problem

pip --version : pip 18.1 from /home/ghost/.local/lib/python2.7/site-packages/pip (python 2.7)

pip3 --version : pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)

  1. i try this answers as well

2.flask installed, but ModuleNotFoundError: No module named 'Flask'

  1. from Flask import Flask ImportError: No module named Flask
2

2 Answers

0
votes

You've installed flask but not flask-ask which is a separate module.

pip install flask-ask
0
votes

Use this command to download flask-ask pip install git+https://github.com/johnwheeler/[email protected]