python azure函数上的sqlAlchemy问题 [英] Issues with sqlAlchemy on python azure functions

查看:132
本文介绍了python azure函数上的sqlAlchemy问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无法将sqlalchemy与Azure函数一起使用.已经创建了虚拟环境,并且也激活了该虚拟环境.但是无法使用炼金术库.但是已经能够将其他库与python3,pandas等一起使用

Unable to use sqlalchemy with Azure functions. Have created a virtual environment and also activated the same. However unable to use alchemy libraries . However have been able to use other libraries with python3 , pandas etc

您能否建议我们如何在Azure Functions中使用sqlalchemy.

Could you please suggest how do we go about using sqlalchemy on Azure Functions.

感谢您的帮助.

此致

Sundar.

推荐答案

Functions v1运行时不支持虚拟环境.

Virtual environments are not supported with the Functions v1 runtime. 

请参阅下面的链接,以了解如何安装Python的自定义版本以及如何使用第三方模块- 

Refer to the link below to learn how to install a custom version of Python and use third party modules with it - 

https://ourwayoflyf.com/running-python-code-on-azure- functions-app/

确保要安装的sqlalchemy版本与所安装的Python版本兼容.

Make sure the version of sqlalchemy you're installing is compatible with your version of Python installed. 

请注意,此功能目前是实验性"功能,我们不建议或不支持在生产环境中使用该功能.我们目前正在为v2运行时提供一流的Python支持,这将使这种情况变得更加简单- https://github.com/Azure/azure-functions-python-worker

Please note that this feature is currently 'experimental' and we don not recommend or support it for production scenarios. We're currently working on first-class Python support for the v2 runtime which will make this scenario a lot easier - https://github.com/Azure/azure-functions-python-worker


这篇关于python azure函数上的sqlAlchemy问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆