I have installed Behave for my BDD Project but not able to execute behave command from PowerShell. command line is not accessible at work station

Not able to run the bheave command even though behave package is installed, I can run successfully through behave configuration in intellij

When I'm executing behave command from feature directory getting below error

Projects\python\PythonBehaveBDD\features> behave behave : The term 'behave' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + behave + ~~~~~~ + CategoryInfo : ObjectNotFound: (behave:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
1

There are 1 best solutions below

0
On
  1. Set behave.exe file location in path variable i found my behave.exe at below location C:\Users\userid\AppData\Roaming\Python\Python37\Scripts
  2. Restart your system.

After than when i run behave command. it was working as expected.

enter image description here