I've got an Azure Linux Web App, and a custom deployment script deploy.sh
I have the Stack runtime version set to Python 3.6 in Application Settings.
I'm having trouble using Python 3.6 in the deployment script - if I use the SSH console I can run the command python3.6
and it works, if I use that in deploy.sh
I get command not found.
I found Python 3.6 in /usr/local/python/3.6.6/bin
so I tried using that in deploy.sh
but got permissions errors trying to use /usr/local/python/3.6.6/bin/python3 -m pip install --upgrade pip
, so I'm assuming that is not the version I am supposed to be using.
If I just use python
in the script I get Python 2.7.