Behave – Installation

Behave - Installation

Behave installation can be done in the following ways −

Behave installation with pip

For installation, we should have pip – the package installer for the Python language installed in our system. The pip is installed by default if the Python version is greater than 2(up to 2.7.9).

To install pip, run the below-mentioned command −

pip install pip

To install pip with Behave, run the command given below −

pip install behave

The following screen will appear on your computer −

Behave - Installation

We can update an existing version of Behave with the following command −

pip install –U behave

We can also use the easy_install for the behave installation.

To install Setuptools, run the below-mentioned command−

pip install setuptools

Now, for the installation, run the command stated below:

easy_install behave

We can update an existing version of behaving with the command given below:

easy_install –U behave

Installation with Source Distribution

Post unpacking of the source distribution of Behave, type the newly generated directory ‘behave-<version>’ and execute the below-mentioned command −

python setup.py install

Installation with Git Repository

We should first have the pip installed in the system.

Later on, to install the latest version of Behave with Git repository, run the below-mentioned command −

pip install git+https://github.com/behave/behave

If we use the PyCharm Editor for writing the Behave code, we should have the Professional version of PyCharm along with the Gherkin plugin installed with it.

Next Topic – Click Here

This Post Has 2 Comments

Leave a Reply