在Azure函数中导入Python文件
我确实在类似的结构中导入了Azure函数中的文件
from folder1.folder.script import function
,但它向我显示了错误 异常:modulenotfounderror:
当我在Azure函数外尝试时,NO模块名为“ folder1”。
I did import a file in azure function in a structure like this
from folder1.folder.script import function
but it showed me error
Exception: ModuleNotFoundError: No module named 'folder1'
whene I tried outside the azure function it worked so any idea why it's can't be accessed within the function
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
创建一个文件夹
calcFunction
并添加了add_number
函数:从Azure函数Python class class :
我的azure函数项目文件夹结构和结果:
Created a Folder
calcfunction
and added theadd_number
function:Calling this method from Azure Function Python Class:
My Azure Functions Project Folder Structure and the result: