简体   繁体   English

将库 snowflake-snowpark-python 添加到 Azure Function

[英]Adding Library snowflake-snowpark-python to Azure Function

Hi All I am new to Azure Function, this is my case,i have Snowflake Snowpark library which is python 3.8 compatible and my Azure function python version is 3.9.7. Hi All I am new to Azure Function, this is my case,i have Snowflake Snowpark library which is python 3.8 compatible and my Azure function python version is 3.9.7. When i am trying to run this code using visual studio (Virtual env selected as 3.9.7 ), Snowflake Snowpark library import statement doesn't get recognized, I mean it shows red line and when i hover it, red line it says python library not available.当我尝试使用 Visual Studio 运行此代码时(虚拟环境选择为 3.9.7),Snowflake Snowpark 库导入语句无法被识别,我的意思是它显示红线,当我使用 hover 时,红线显示 python 库无法使用。 My question is, is it possible to add external library of python 3.8 version into 3.9 python virtual env.我的问题是,是否可以将 python 3.8 版本的外部库添加到 3.9 python 虚拟环境中。 If yes how do i do this.如果是,我该怎么做。

Despite this error if i try to upload my code into Azure function from Visual Studio;尽管出现此错误,但如果我尝试从 Visual Studio 将我的代码上传到 Azure function 中; the deployment fails with error " Could not find a version that satisfies the requirement snowflake-snowpark-python"部署失败并出现错误“找不到满足 Snowflake-snowpark-python 要求的版本”

Snowflake connectors have been behind in python versions in almost all the use cases I have used.在我用过的几乎所有用例中,雪花连接器在 python 版本中都落后了。

Documentation states The Snowpark API requires Python 3.8 ( Snowpark API )文档说明 Snowpark API 需要 Python 3.8( Snowpark API

Most likely just need to update venv to 3.8.x很可能只需要将 venv 更新到 3.8.x

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM