Linux Python Function APP-尽管在requirements.txt中找不到pyodbc模块,但其他模块运行正常. [英] Linux Python Function APP - pyodbc module not found despite being in requirements.txt and other modules working fine.
问题描述
我正在使用Linux使用计划.
I'm using a Linux consumption plan.
我收到以下错误;
异常:ModuleNotFoundError:否名为"pyodbc"的模块
I get the following error;
Exception: ModuleNotFoundError: No module named 'pyodbc'
我已经添加了 requirements.txt
file
以及此文件中的其他模块,例如
I have added pyodbc
in the requirements.txt
file
and other modules in this file such as azure-storage
are working fine.
任何人都已看到此问题或可以确认这是一个已知的错误.我看不到任何手动安装此方法的方法.
Has anyone seen this issue or can confirm this is a known bug. I can't see any way to manually install this.
推荐答案
大卫,
您是否可以使用pip installer命令安装此模块?例如, pip安装pyodbc
Are you able to install this module by using a pip installer command? For example, pip install pyodbc
某些模块要求您运行pip才能安装它们.供您参考,以下指南显示了如何使用pip安装Python模块:
Some modules require you to run pip in order to install them. For your reference, the following guide shows how you can install Python modules using pip: https://github.com/yokawasa/azure-functions-python-samples/blob/master/docs/install-python-modules.md#1-installing-python-module-using-pip
如果此答案有帮助,请单击标记为答案"或向上投票.要提供有关您的论坛体验的其他反馈,请单击 此处
If this answer was helpful, click "Mark as Answer" or Up-Vote. To provide additional feedback on your forum experience, click Here
这篇关于Linux Python Function APP-尽管在requirements.txt中找不到pyodbc模块,但其他模块运行正常.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!