我正在尝试在 Microsoft Azure 中测试无服务器 Python Chatbot API,但是当我按照在线指南进行操作时 https://towardsdatascience.com/creating-a-serverless-python-chatbot-api-in-microsoft-azure-from-scratch-in-9-easy-steps-2f1913fc9581
它给出了这些错误:
无法导入“azure.functions”pylint(导入错误)[3,1]
无法导入 '__app__modules.library_finder' pylint(import-error) [4,1]
知道如何解决这个问题吗?
问候
最佳答案
这个错误来自pylint。似乎 linter 没有指向 .env,因此无法验证 azure 包!要解决它,你可以试试这个:
在 Visual Studio 代码中:
希望这可以帮助
关于visual-studio-code - 无法导入 'azure.functions' pylint(import-error) [3,1] 和无法导入 '__app__modules.library_finder' pylint(import-error) [4,1],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60898533/