I try to run py script via Task Scheduler at server. However, despite setting a Task and Trigger for it, my script is not running. I even tried to run it manually via cmd console, only with bellow result in error message:
Traceback (most recent call last):
File "D:\EAR_script\EAR_script", line 9, in <module>
import psycopg2
File "D:\EAR_script\.venv\lib\site-packages\psycopg2\__init__.py", line 51, in <module>
from psycopg2._psycopg import ( # noqa
ModuleNotFoundError: No module named 'psycopg2._psycopg'
all of the module listed in error message are in Lib folder. Any clue how to solve it?