@Akshata Purshottam Palsule , You may run an unsupported version of Python by building your own container image instead.
Just to highlight, Python apps must be deployed with all the required pip modules.
The App Service deployment engine automatically activates a virtual environment and runs pip install -r
requirements.txt for you when you deploy a Git repository, or a zip package with build automation enabled.
App Service's build system, called Oryx, performs the following steps when you deploy your app if the app setting SCM_DO_BUILD_DURING_DEPLOYMENT
is set to 1
:
Kindly try the suggestions/flow outlined in this document:
Other frameworks and web servers
- Include the framework and/or web server in your requirements.txt file.
- In your startup command, identify the WSGI callable as described in the previous section for Flask.
- To launch a web server other than Gunicorn, use a python -m command instead of invoking the server directly.
Ref: Container characteristics
Checkout this similar discussion thread : Azure Python Deployment - Spacy nomodule found exception