I have a Python (3.7.2) file that pulls data from a third party API, saves the data in a local CSV file on Windows Server 2016>
Python (3.7.2)
API
CSV
Windows Server 2016>
Did you try using sp_execute_external_script ?
execute sp_execute_external_script @language = N'Python', @script = N' a = 1 b = 2 c = a/b d = a*b print(c, d) '
For example, this code can be scheduled into SqlAgent.