A
A
Alexey Cheremisin2019-05-19 22:23:27
Python
Alexey Cheremisin, 2019-05-19 22:23:27

How to make python run in task scheduler?

Good evening, I'm trying to insert my script into the task scheduler, which uses requests.
Python is installed in the system environment, everything that needs to be written in the PATH variable.
The script works well from the command line.
But as soon as I try to register it in the "Task Scheduler", it does not work as it should, for some reason it does not find the SSL module. And does not pick up environment variables!
Yes, server, after installing python, I did not overload ...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Cheremisin, 2019-05-19
@leahch

Rebooted the server and everything fell into place! The question is closed!

A
Artem @Jump, 2019-05-19
curated by the

If it works when manually started and does not work from the scheduler, then-
The wrong path is treated either by setting environment variables, or by full paths, depending on what is convenient in this situation.
Rights need to be checked.

SSL module
As a rule, SSL is used when working over a network, and the system account does not have the right to do so.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question