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.
Answers:
- run command prompt as Administrator.
- Then uninstall functions-framework using the code
pip uninstall functions-framework
- Reinstall it by:
pip install functions-framework
- Go to your main.py directory and run
functions-framework --target=<YOUR_FUNCTION>
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
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.
- run command prompt as Administrator.
- Then uninstall functions-framework using the code
pip uninstall functions-framework
- Reinstall it by:
pip install functions-framework
- Go to your main.py directory and run
functions-framework --target=<YOUR_FUNCTION>
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