如何在Azure Web App Service Linux环境中安装自己的Python软件包?
我将我的Python Django项目部署到Azure Web Service Linux环境,发现Azure自己的Python版本最有可能引起的错误(请参阅此帖子 azure文本”到语音错误:0x38(spxerr_audio_sys_sys_library_not_found) )。但是,我似乎找不到将自己的Python软件包(3.10)上传到Azure Web Service Kudu站点的方法。有办法做到吗?
谢谢。
I deployed my Python Django project to Azure Web Service Linux environment, and found an error most likely caused by the version of Azure's own Python version (see this post Azure Text to Speech Error: 0x38 (SPXERR_AUDIO_SYS_LIBRARY_NOT_FOUND) when deploying to Azure App Services Linux environment ). However, I cannot seem to find a way to upload my own Python package (3.10) to Azure Web Service Kudu site. Is there a way to do it?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
目前,这是不可能的,Linux Web应用中可用的最新Python运行时为3.9
,在另一个问题中,与Windows和Windows和Windows和Windows和Windows和Windows和Windows和Windows和Windows和Windows和Windows和Windows和因此,您不能直接拖放zip文件。如果您需要安装更多组件或语言运行时间,则只需要使用
apt-get install< packages>
使用kudu ssh终端即可。另外,请尝试检查配置Azure应用程序的Linux Python应用程序服务
Currently, This is not possible, the latest python runtime available in the Linux web app is 3.9
and in the other question, The default Linux Kudu page has a minimum number of features available when compared to windows and so you cannot directly drag and drop your zip file. If you need to install more components or language runtimes, you just need to use Kudu SSH terminal using
apt-get install <packages>
.Also, try checking Configure a Linux Python app for Azure App Service
现在在应用程序服务上支持Python 3.10,因此,对于此特定问题,您可以将配置更新为Python 3.10。
Python 3.10 is now supported on App Service, so for this particular problem, you can update the configuration to Python 3.10.