如何在Azure Web App Service Linux环境中安装自己的Python软件包?

发布于 2025-01-26 10:18:55 字数 390 浏览 3 评论 0原文

我将我的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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

贵在坚持 2025-02-02 10:18:55

目前,这是不可能的,Linux Web应用中可用的最新Python运行时为3.9

https://i.sstatic.net/fyhka.png“ alt =”在此处输入图像描述”>

,在另一个问题中,与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

enter image description here

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

可爱暴击 2025-02-02 10:18:55

现在在应用程序服务上支持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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文