Forums

Exception: No module named 'apscheduler'

Hi! I succesfully installed apscheduler: pip install apscheduler

But when I want to use it:

from apscheduler.schedulers.background import BackgroundScheduler

I have an exception

ModuleNotFoundError No module named 'apscheduler'

Why?

Make sure you've installed it into the version of Python/virtualenv that you are using to run your code. pip installs into Python 2.7 and pip3.6 installs into Python 3.6 etc.