I have the following small script in a file named fgh.py
which I have been attempting to schedule as a webjob
import pandas as pd
df=pd.DataFrame({'a':[1,2,2],'b':[5,6,9]})
df['x']=df.a.sub(df.b)
print(df)
Using @Peter Pan post. I have created a virtual environment, done a pip install pandas
. From the virtual environment, the script runs and executes as required.It however does not execute when loaded in Azure Webjobs
. I suspect issues arise from the interface between the run,bat file and the Azure python console but have limited understanding of Azure to resolve the issue
In kudus, I have used this post to install python.
Running where python
in cmd
command in https://myapp.scm.azurewebsites.net/DebugConsole
I get;
Additionally from https://arcgistrial.scm.azurewebsites.net/DebugConsole
I get the following when I run cmd command python -V
In my run.bat
file, I have tried to use either of the directories above without success.
Whether I make my run.bat
file D:\home\python364x64\python.exe fgh.py
or D:python364x64\python.exe fgh.py
I get the following error;
I have gone a head and installed pandas
and checked if successful by trying to install numpy
All this has not helped. I have been on this for a couple of days and it has to work somehow. Any help?