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

Question:

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.

Asked By: bront

||

Answers:

  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>
Answered By: Reza Parvaz

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

Answered By: Kalaivanan
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.