pip show functions-framework
如果输出内容包含'Location:”和'Version:”,则说明已正确安装。
echo %PATH%
如果输出内容包含包含'Python”的路径和'Scripts”路径,且其中包含'functions-framework.cmd”文件,则说明已正确添加。
pwsh -c "functions-framework --target=hello_world --debug"
其中,'hello_world”可以替换为自己的函数名字,上面的命令会在 PowerShell 中启动 Functions-framework,并运行该函数。
上一篇:安装后,附加菜单为空。