You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a super simple Flask install, and i've run...
pip install Flask-APScheduler
and my code is simple...
fromflaskimportFlaskfromflask_apschedulerimportAPSchedulerfromlib.uximporthomeapp=Flask(__name__)
# Details on the Secret Key: https://flask.palletsprojects.com/en/1.1.x/config/#SECRET_KEY# NOTE: The secret key is used to cryptographically-sign the cookies used for storing the session data.app.secret_key='BAD_SECRET_KEY_CHANGE_ME'# Setup schedulerscheduler=APScheduler()
# Routesapp.add_url_rule('/', view_func=home)
if__name__=="__main__":
app.run()
and when running flask, it throws the error...
ModuleNotFoundError: No module named 'flask_apscheduler'
Guys, I've just installed the package on my Ubuntu 22.04 for Python 3.8.19 and there is no issue with importing it.
What Python version do you use (minimal version is 3.8)?
When you ran python3 -m pip show Flask-APScheduler, where does it say the package is installed? Is the location among the Pythonpath for your Python binary?
You can list all the paths by running python3 -c 'import sys;print(sys.path)'
I have a super simple Flask install, and i've run...
pip install Flask-APScheduler
and my code is simple...
and when running flask, it throws the error...
ModuleNotFoundError: No module named 'flask_apscheduler'
pip freeze shows...
Any clues as to why this is failing?
The text was updated successfully, but these errors were encountered: