Forums

Running a scheduled task that requires specific modules

Hello,

I have a script that I want to run as a scheduled task. It scrapes a website and output data to a CSV file I've uploaded the file to a folder and everything runs fine. Prior to this, in a Bash console I installed the required modules with pip3.

When i define it to run as a scheduled task, I get an error message ModuleNotFoundError: No module named 'requests_html'

I've added in python3.7 to the scheduled task to use the same version as in the console but to no avail.

Best regards /Colm

Hi Colm -- did you use pip3.7 to install the packages? pip3 might point to a different Python version, like 3.6.