PythonAnywhere Forums

No module error, only for schedule tasks

Hi, when I run the script from the scehduler I get:

ImportError: No module named pymysql

But if I run it from the console it works!

Can you help me?


It might be due to the wrong version of Python being used. If you delete the failing scheduled task, and replace it with one that specifies the Python version -- for example:

python3.5 path/to/

...then that should fix the problem