Webjobs Running Error (3587fd: ERR ) from zipfile

后端 未结 2 1190
北海茫月
北海茫月 2021-01-28 11:38

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({         


        
2条回答
  •  失恋的感觉
    2021-01-28 12:25

    The key to solving the problem is that you need to create your venv environment on azure.

    Step 1. Run successfully in local.

    Step 2. Compress your webjob file.

    Step 3. Upload webjob zip file.

    Because the test environment has python1 before, I will create a webjob of python2 later.

    Step 4. Log in kudu.

    cd ..

    ② find Python34, click it.

    python -m venv D:\home\site\wwwroot\App_Data\jobs\continuous\python2\myenv

    ④ Find myenv folder.

    ⑤ active myenv, input .\activate.bat.

    D:\home\site\wwwroot\App_Data\jobs\continuous\python2\myenv\Scripts>.\activate.bat

    ⑥ Back to python2 folder, and input pip install pandas.

    ⑦ Then input python aa.py.

提交回复
热议问题