Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Using a custom version of Python
To change the Python version being used in a Function App, you can use the following steps:
- First, download the Python version you want to use. e.g. to use a 64 bit version of Python 3.5.2, go to https://www.python.org/downloads/release/python-352/ and download the 'Windows x86-64 embeddable zip file'. Keep it zipped.
- In your Function App, go to the Kudu UI (accessible from Function App Settings)
- Go to the
- Drag and Drop the zip file from your machine onto the special Kudu area that says 'Drag here to upload and unzip'
Now, all, Python functions will be using these bits, since that folder is on the path. To verify this, just print
print(sys.version) from your code. e.g. it should print something like
3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:18:55) [MSC v.1900 64 bit (AMD64)].
Please note that Python support is in preview (as of Jan 2017) and the ability to use multiple different Python versions may not be preserved when this functionality leaves preview and becomes generally available.