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

3.4k Views Asked by At

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.

2

There are 2 best solutions below

2
On BEST ANSWER
  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>
0
On

After trying Reza's point and if it still doesn't work then try may be the below command. it works for me all the time.

functions-framework-python --target <<you_function>> --debug