I followed the following steps:
Open the Settings/Preferences dialog Ctrl+Alt+S , select Project | Python Interpreter. Add the behave package, as described in the section