I am using Python on VS Code (Windows). I am encountering the following error:
Traceback (most recent call last):
File "c:\Users\taimo\Documents\Visual Studio Code Workloads\Python VS Code\DateTimeModule.py", line 1, in <module>
import schedule
ModuleNotFoundError: No module named 'schedule'
I have tried many things to fix this issue, which include changing the Python interpreter in VS Code, updating the Python version on my computer, installing "scheduler" using pip3, uninstalling and reinstalling scheduler using pip3, however even after all this the issue has not been fixed.
It is infuriating, because a few days ago, it was working just fine without any errors, and today it suddenly started throwing this error. I shall be very grateful to you if you can solve this problem for me.
Thanks in advance!
The code I am running is:
import schedule
import time
def job():
print("I'm working...")
schedule.every(10).seconds.do(job)
while True:
schedule.run_pending()
time.sleep(1)


