I have python program that imports schedule (import schedule
) at the beginning. The code executes without a problem with python3 command, but starting it from other python file with call("sudo python3 ProgramWithSchedule.py", shell=True)
returns error ModuleNotFoundError: No module named 'schedule'
. And I can't figure out why...
I have library schedule installed with pip, pip3 AND apt-get (tried all three just to be sure :)
Thanks!
venv
. And now you are in a different pythonvenv
. You have to re-install the module.package already installed
and if not your output will be likepackage installed
Requirement already satisfied