[英]Azure App Service with Python 3.9 deployment failed
We are trying to deploy a rather simple flask app to azure app service.我们正在尝试将一个相当简单的 flask 应用部署到 azure 应用服务。 The deployment (using local git) fails with the following output:
部署(使用本地 git)失败并显示以下 output:
remote: Python Version: /tmp/oryx/platforms/python/3.9.12/bin/python3.9
remote: Creating directory for command manifest file if it doesnot exist
remote: /tmp/oryx/platforms/python/3.9.12/bin/python3.9: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/oryx/platforms/python/3.9.12/lib/libpython3.9.so.1.0)
remote: Removing existing manifest file
remote: /tmp/oryx/platforms/python/3.9.12/bin/python3.9: /lib/x86_64-linux-gnu/libpthread.so.0: version `GLIBC_2.30' not found (required by /tmp/oryx/platforms/python/3.9.12/lib/libpython3.9.so.1.0)
remote: Python Virtual Environment: antenv
remote: Creating virtual environment...
remote: Deployment Failed.
Anyone there that has an idea why this fails?那里有人知道为什么会失败吗? It should be so simple.... :( It is an app service, not a docker container, not a vm..
应该这么简单.... :( 这是一个应用服务,不是 docker 容器,不是虚拟机..
Greets, John问候,约翰
I was getting the same error this morning and managed to fix it by changing the application's python version from 3.9 to 3.8.今天早上我遇到了同样的错误,并设法通过将应用程序的 python 版本从 3.9 更改为 3.8 来修复它。
I'm not quite sure why this is an issue now as previously I had the application deployed on python3.9.我不太确定为什么现在这是一个问题,因为以前我在 python3.9 上部署了应用程序。
In order to change your applications python version you need to为了更改您的应用程序 python 版本,您需要
Hope this helps!希望这可以帮助!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.