简体   繁体   中英

Flask heroku noModuleNamed 'flask_login'

I have a problem when i try to push my flask app to heroku

the error is this:

ModuleNotFoundError: No module named 'flask_login'

Please help!

This is telling you that flask_login exists in your local development environment, and you still didn't yet add it to your requirement.txt before pushing to your heroku app.

You will need to regenerate your requirement.txt with:

$pip freeze > requirements.txt

Then push your changes and re-install your packages using the new requirement.txt file:

$pip install -r requirements.txt

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM