Importing Python modules for Azure Function

后端 未结 2 1163
温柔的废话
温柔的废话 2021-02-08 12:18

How can I import modules for a Python Azure Function?

import requests

Leads to:

2016-08-16T01:02:02.317 Exception while executi         


        
2条回答
  •  萌比男神i
    2021-02-08 13:10

    Python support is currently experimental for Azure Functions, so documentation isn't very good.

    You need to bring your own modules. None are available by default on Azure Functions. You can do this by uploading it via the portal UX or kudu (which is handy for lots of files).

    You can leave comments on which packages you'd like, how you'd like to manage you packages here on the tracking issue for "real" Python support - https://github.com/Azure/azure-webjobs-sdk-script/issues/335

提交回复
热议问题