I am trying to run a python script with Azure functions. I had success updating the python version and installing modules on Azure functions under the App Services plan but
This is what worked for me:
Dislaimer: I use C# Function that includes Python script execution, using command line with
System.Diagnostics.Process
class.
Add relevant Python extension for the Azure Function from Azure Portal:
Platform Features -> Development Tools -> Extensions
It installed python to D:\home\python364x86
(as seen from Kudu console)
Add an application setting called WEBSITE_USE_PLACEHOLDER and set its value to 0. This is necessary to work around an Azure Functions issue that causes the Python extension to stop working after the function app is unloaded.
See: Using Python 3 in Azure Functions question.
Install the packages from Kudu CMD line console using pip install ...
(in my case it was pip install pandas
)