New to flask and Flask-Login - ImportError: No module named login

后端 未结 4 2281
太阳男子
太阳男子 2021-02-13 04:09

It appears that installation of flask-login has issues. Despite a successful install using the below

 pip install flask-login

My app.py file

4条回答
  •  无人共我
    2021-02-13 04:55

    For flask-login 0.3.2 and later, following is the way:

    from flask_login import LoginManager
    

    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
    

    Note:- not sure from which version of flask-login this convention is followed

提交回复
热议问题