If following does not work:
from flask.ext.login import LoginManager
try the following:
from flask_login import LoginManager
This is the new convention.
To find the flask-login version, you can run the following command in terminal. Just change the name to know the version of other packages.
pip show flask-login