1

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.

Nimantha
  • 6,405
  • 6
  • 28
  • 69
bront
  • 43
  • 1
  • 7

2 Answers2

1
  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>
  • 1
    Any luck on this ? Tried these steps from command prompt (admin mode) still getting the same error "'functions-framework' is not recognized as an internal or external command, operable program or batch file." – code tutorial Apr 28 '21 at 14:06
  • Reza's answer worked for me. Does pip install / uninstall work for you in admin mode with other packages? – bront Apr 28 '21 at 15:25
0

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