Skip to content
Advertisement

How to fix this issue with python behave not being recognized

So I followed the tutorial on python behave and how to install it. I did everything that it said and behave command can never be found even after adding environment variables.

I used this https://behave.readthedocs.io/en/stable/

enter image description here

I cannot for the life of me figure out why I constantly keep getting command is not recognized.

I have also looked at a lot of other stack overflow questions but neither of them are actually helpful nor have any good answers.

Advertisement

Answer

After trial and error for hours, I have finally figured out what was missing from Environment Variables.

If you’re running into the same issue of behave not being found try going into your roaming folder by using run and typing %appdata% this will take you to your roaming folder. Inside there find PythonPython310Scripts add the whole path into your system environment variables and that should fix the issue.

Also during the installation process if you’re using pip use this command pip install behave --user Explanation of what is –user

Advertisement