Using a custom version of Python

Paul Batum edited this page Jan 9, 2017 · 2 revisions

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 D:\home\site\tools folder
  • 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.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.