[英]Azure webapp: How to update Python version?
I'm using the Azure webapp service, in a Linux environment, with a Node stack, since this is what my webapp primarily runs off.我在 Linux 环境中使用 Azure webapp 服务,使用节点堆栈,因为这是我的 webapp 主要运行的地方。 My node webapp does however execute a Python script, that uses modules which require Python version 3.6 or greater, but the webapp currently has Python version 3.5.但是,我的节点 webapp 执行 Python 脚本,该脚本使用需要 Python 版本 3.6 或更高版本的模块,但 webapp 当前具有 Python 版本 3.5。
My question is, how can I update/upgrade my Python version to 3.6 or greater, either through the Azure control panel, or the Azure CLI.我的问题是,如何通过 Azure 控制面板或 Azure CLI 将我的 Python 版本更新/升级到 3.6 或更高版本。 I would have tried using the extensions tab through the Azure control panel, but it seems to be inaccessible (greyed out), and I cannot interact with it.我会尝试通过 Azure 控制面板使用扩展选项卡,但它似乎无法访问(灰色),我无法与之交互。
If you need anymore information, please do ask.如果您需要更多信息,请询问。
Thanks in advance!提前致谢!
Scroll down the list of extensions until you see the Python logos, then select the version you require.向下滚动扩展列表,直到您看到 Python 徽标,然后是 select 您需要的版本。
We can see the "OK" button greyed out.我们可以看到“确定”按钮变灰了。
I have changed the python version in Azure Linux Web App service in using Powershell Command我在Azure Linux Web App service中使用Powershell命令更改了python版本
To get the current version,要获取当前版本,
az webapp config show --resource-group <resource-group-name> --name <app-name> --query linuxFxVersion
To update the existing version,要更新现有版本,
az webapp config set --resource-group <resource-group-name> --name <app-name> --linux-fx-version "PYTHON|3.6"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.