首页 > 解决方案 > Linux Python Azure Function APP - 尽管在 requirements.txt 和其他模块工作正常,但未找到 pyodbc 模块

问题描述

我正在使用一个Linux consumption计划。

我收到以下错误; Exception: ModuleNotFoundError: No module named 'pyodbc'

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

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

标签: pythonazure-functionspyodbc

解决方案


我相信这是 Python 工作者的一个错误。我已经向团队提出了一个问题,因为我也遇到了这个问题。https://github.com/Azure/azure-functions-python-worker/issues/249


推荐阅读