在 Visual Studio 2015 中创建 Python Azure 函数不会自动创建 "Python Environments" 文件
Creating Python Azure Function in Visual Studio 2015 doesn't auto-create "Python Environments" file
我正在使用 Visual Studio 2015 并下载了 Python Azure Functions 工具,并且一直在关注 this documentation 创建 Python Azure Functions(文档显示创建 C# 函数,但我在下拉菜单中选择了 "Python"。
但是,我创建了函数应用程序和函数,但没有看到 Python 环境文件:
我所看到的:
我想要的 Python 环境文件:
因此,我的问题:
- 我需要做什么才能显示 Python 环境文件?
- 如何将外部库安装到我的 Azure Function 环境? (这个:https://github.com/JohannesBuchner/imagehash)
复制到这里:
Virtual environments are not supported with the Functions v1 runtime.
Refer to the link below to learn how to install a custom version of
Python and use third party modules with it -
https://ourwayoflyf.com/running-python-code-on-azure-functions-app/
Make sure the version of sqlalchemy you're installing is compatible
with your version of Python installed.
Please note that this feature is currently 'experimental' and we don
not recommend or support it for production scenarios. We're currently
working on first-class Python support for the v2 runtime which will
make this scenario a lot easier -
https://github.com/Azure/azure-functions-python-worker
我正在使用 Visual Studio 2015 并下载了 Python Azure Functions 工具,并且一直在关注 this documentation 创建 Python Azure Functions(文档显示创建 C# 函数,但我在下拉菜单中选择了 "Python"。
但是,我创建了函数应用程序和函数,但没有看到 Python 环境文件:
我所看到的:
我想要的 Python 环境文件:
因此,我的问题:
- 我需要做什么才能显示 Python 环境文件?
- 如何将外部库安装到我的 Azure Function 环境? (这个:https://github.com/JohannesBuchner/imagehash)
复制到这里:
Virtual environments are not supported with the Functions v1 runtime.
Refer to the link below to learn how to install a custom version of Python and use third party modules with it -
https://ourwayoflyf.com/running-python-code-on-azure-functions-app/
Make sure the version of sqlalchemy you're installing is compatible with your version of Python installed.
Please note that this feature is currently 'experimental' and we don not recommend or support it for production scenarios. We're currently working on first-class Python support for the v2 runtime which will make this scenario a lot easier - https://github.com/Azure/azure-functions-python-worker