I have a problem with flask_login module.
i have installed flask_login module successfully. Also from the command prompt i can run this script easily with no error:
This is an environment error -- whatever IDE you're using doesn't have the PYTHONPATH set properly. You can test this out by creating a small test file: test.py, with the following contents:
from os import environ
print environ.get('PYTHONPATH')
If the PYTHONPATH doesn't contain the directory that holds your Flask-Login package, then that's the issue.
Initially I installed flask_login on virtual environment. I found out that its trying to find on the machine. So I installed it globally as;
mycomp# pip install -U flask_login
That solved the problem.