Forums

Module import in manual and scheduled modes is different

I have installed a few modules (pip...) in Bash. The code in my file runs easily when I open and run it online. But when I schedule the same file, it cannot find installed modules and fails to run my script. What am I doing wrong?

Are you sure you're using the same version of Python in Bash and in the scheduler?

How do I ensure this? There is no option to choose Python version in Scheduler

Hi there, you can either specify the python executable explicitly on the schedule page, or use a hashbang. details here: http://help.pythonanywhere.com/pages/ScheduledTasks

Many thanks @harry! It helped!