简体   繁体   中英

Import Error With Heroku

My requirements.txt file does not seem to be working

One of the lines in my file states:

Flask-Cache==0.12

However, I am getting the following error why I try to use Flask-Cache:

ImportError: No module named flask.ext.cache

Any ideas on how to fix this?

What Flask version do you use? flask.ext.* redirect package prior to 0.8 is available only using the compatibility script .

Try importing flask_cache instead of flask.ext.cache

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