Search code examples
pythonfunctions-framework

Functions-framework won't run in windows command line after installing


Has anyone run into this issue before? I've done pip install --user functions-framework and been told a bunch of requirements are already satisfied.

When I then run functions-framework --target=function I get the error 'functions-framework' is not recognized as an internal or external command, operable program or batch file.


Solution

    1. run command prompt as Administrator.
    2. Then uninstall functions-framework using the code pip uninstall functions-framework
    3. Reinstall it by: pip install functions-framework
    4. Go to your main.py directory and run functions-framework --target=<YOUR_FUNCTION>