为什么在我的 Azure 应用服务中安装了 python 版本 3.6 后 python 仍然是版本 2.7?
Why python is still version 2.7 after I've installed a python version 3.6 in my Azure App Service?
我正在尝试使用 python pip install 在我的应用程序服务中安装 azure-cli,但出现错误。
You are using pip version 9.0.3, however version 21.1.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
我已经尝试了这个建议,但它也不起作用。所以我在我的应用程序服务中添加了 Python 3.6.4 x64 扩展并安装了它。但是控制台还在用2.7版本
我错过了什么?
请在 Azure 应用服务上安装扩展:
单击“添加”并select您想要的那个:
然后接受条件。之后您需要更改路径,这在 documentation
中显示
可以通过Xdt transform
完成
<?xml version="1.0"?>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<system.webServer>
<runtime xdt:Transform="InsertIfMissing">
<environmentVariables xdt:Transform="InsertIfMissing">
<add name="FOO" value="BAR" xdt:Locator="Match(name)" xdt:Transform="InsertIfMissing" />
<add name="PATH" value="%PATH%;%HOME%\FolderOnPath" xdt:Locator="Match(name)" xdt:Transform="InsertIfMissing" />
</environmentVariables>
</runtime>
</system.webServer>
</configuration>
请同时检查此
我正在尝试使用 python pip install 在我的应用程序服务中安装 azure-cli,但出现错误。
You are using pip version 9.0.3, however version 21.1.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
我已经尝试了这个建议,但它也不起作用。所以我在我的应用程序服务中添加了 Python 3.6.4 x64 扩展并安装了它。但是控制台还在用2.7版本
我错过了什么?
请在 Azure 应用服务上安装扩展:
单击“添加”并select您想要的那个:
然后接受条件。之后您需要更改路径,这在 documentation
中显示可以通过Xdt transform
完成<?xml version="1.0"?>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<system.webServer>
<runtime xdt:Transform="InsertIfMissing">
<environmentVariables xdt:Transform="InsertIfMissing">
<add name="FOO" value="BAR" xdt:Locator="Match(name)" xdt:Transform="InsertIfMissing" />
<add name="PATH" value="%PATH%;%HOME%\FolderOnPath" xdt:Locator="Match(name)" xdt:Transform="InsertIfMissing" />
</environmentVariables>
</runtime>
</system.webServer>
</configuration>
请同时检查此