How can I install my own Python package in Azure Web App Service Linux environment?

461 views Asked by At

I deployed my Python Django project to Azure Web Service Linux environment, and found an error most likely caused by the version of Azure's own Python version (see this post Azure Text to Speech Error: 0x38 (SPXERR_AUDIO_SYS_LIBRARY_NOT_FOUND) when deploying to Azure App Services Linux environment ). However, I cannot seem to find a way to upload my own Python package (3.10) to Azure Web Service Kudu site. Is there a way to do it?

Thanks.

2

There are 2 answers

0
SwethaKandikonda On

Currently, This is not possible, the latest python runtime available in the Linux web app is 3.9

enter image description here

and in the other question, The default Linux Kudu page has a minimum number of features available when compared to windows and so you cannot directly drag and drop your zip file. If you need to install more components or language runtimes, you just need to use Kudu SSH terminal using apt-get install <packages>.

Also, try checking Configure a Linux Python app for Azure App Service

0
Pamela Fox On

Python 3.10 is now supported on App Service, so for this particular problem, you can update the configuration to Python 3.10.