python - Linux Python Azure Function APP - 尽管在 requirements.txt 和其他模块中工作正常,但找不到 pyodbc 模块

标签 python azure-functions pyodbc

我正在使用 Linux 消费 计划。

我收到以下错误; 异常:ModuleNotFoundError:没有名为“pyodbc”的模块

我在 requirements.txt 文件中添加了 pyodbc 并且此文件中的其他模块(例如 azure-storage)工作正常。

有没有人见过这个问题或可以确认这是一个已知错误?我看不到任何手动安装它的方法。

最佳答案

我认为这是 Python worker 的一个错误。因为我也有这个问题,所以我已经向团队提出了一个问题。 https://github.com/Azure/azure-functions-python-worker/issues/249

关于python - Linux Python Azure Function APP - 尽管在 requirements.txt 和其他模块中工作正常,但找不到 pyodbc 模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53428025/

相关文章:

python - 阅读消息时无附件(无法保存附件)

azure - 如何为不同的部署配置文件部署不同的host.json?

python - pyodbc 将 SQL Server DATE 字段作为字符串返回

Python SQL 更新查询 : string or integer address expected instead of instance instance

python - pyodbc 连接到在 docker 容器上运行的 MS SQL Server

python - Pandas 使用什么规则来生成 View 和副本?

python - Pandas 将时间序列重新采样为 24 小时

python - 如何一次计算所有每个 numpy 值的概率?

.net-core - 在 azure functions 3 中,我可以将日志过滤到应用程序见解和不同级别的控制台吗

python - 如何循环遍历行值以仅返回特定值?