Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to change Python version #519

Closed
davidebbo opened this issue Jul 25, 2016 · 4 comments
Closed

Add ability to change Python version #519

davidebbo opened this issue Jul 25, 2016 · 4 comments

Comments

@davidebbo
Copy link
Contributor

If you go to the App Settings, you can change the Python version of the Web App, but that doesn't work at all and instead completely breaks the function app. That's because this setting is not designed for Functions at all.

Instead, with Functions, it uses whatever Python.exe is on the path (see code), which happens to be D:\Python27\python.exe.

We should provide a proper way of changing this.

@epaprat
Copy link

epaprat commented Nov 8, 2016

Actulaly we solved this issue with siteextensions.

Added to our template.json:

"resources": [
{
    "apiVersion": "2016-03-01",
    "name": "python2712x64",
    "type": "siteextensions",
    "properties": { },
    "dependsOn": [
        "[resourceId('Microsoft.Web/sites', parameters('siteName'))]"
     ]
 }
"HandlerMappings":[{
    "Arguments":"D:\\home\\Python27\\wfastcgi.py",
    "Extension":"fastCgi",
    "ScriptProcessor":"D:\\home\\Python27\\python.exe"
 }]

This way is pretty hacky but it works until this issue is solved.

@davidebbo
Copy link
Contributor Author

@epaprat Nice! Thanks for sharing.

@christopheranderson
Copy link
Contributor

won't be fixed in v1, will be addressed in 2.0

@asavaritayal
Copy link

We will no longer be adding new features to Functions 1.0.

Python support has been reintroduced on Functions 2.0 and python 3.6 is supported. You can follow the discussion here - https://aka.ms/functions-python-preview

@Azure Azure locked as resolved and limited conversation to collaborators Jan 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants