A community member has associated this post with a similar question:
How to Upgrade Python version on Kudu Power Shell on Azure Function Windows App

Only moderators can edit this content.

How to Upgrade And Use Python 3.12 & pip as well as installing libraries on Azure Function (Windows) App Using Kudu or CLI Development Tools

Muhammad Guruh Ajinugroho 105 Reputation points
2024-12-18T07:07:22.78+00:00

Hi,

I am quite new to the Azure Function.

I developed and deployed an Azure HTTP Trigger Function (Windows) using Dotnet 8 Isolated which perform external python script regularly. After deployment I noticed it was not able to run the python script on the cloud environment. So I tried to run the script using the Development Tool's CLI and Kudu Powershell & CMD. Upon execution I noticed that the exiting python version was 2.7.15 whereas on my local environment my script was using version 3.12

I have tried several workaround to fix this such as installing Python 3.6 extension through the development tools and swap it's content with my python 3.12 on Kudu but to no effect.

Trying to upgrade or made any changes using python or pip command resulted in "Access denied" errors.

How can I successfully upgrade both Python & Pip, as well as installing the pre-requisite library for my python script to runUser's image

User's image

User's image

User's image

Community Center | Not monitored
{count} votes