-1

I have a Linux based NodeJS Web App resource on Azure.

I want to deploy a Python 3.12 based continuous Web Job under this Web App. I have added a run.sh which contains installing the requirements.txt and then running main.py, which contains an infinite while loop for running the job.

What I have noticed is that there is a Python 3.11 available which is not ideal, as my web job was written for 3.12. The 3.11 is also externally managed meaning i cant create a venv and also pip or pip3 are unknown commands, so I can't install any pip packages (ensurepip is also not available). I have tried to install 3.12 in various ways but none worked (building from source, getting from the Python website via curl etc..). I also tried copying over the venv folder via my zip deploy but the file is too big. There are also no "Extensions" on the Linux Kudu to add a Python App. I am fairly new to Azure and can't find anything related to my issue in the official documentation.

What is the general way to add a certain Python version, and install pip dependencies on a NodeJs based Web App that runs on Linux?

1 Answer 1

0

You should be able to create your python 3.12 Linux code app on Azure and it would contain the runtime needed to run your web jobs. Also on your kudu console when you SSH to your container, you should be able to find the pip tool path:

enter image description here

Sign up to request clarification or add additional context in comments.

1 Comment

As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.