you can work with gerrit by installing git-review on different platforms as discussed in this chapter.
windows
in windows, you can install the git-review as listed in the following steps.
step 1 − first install python for installing git-review.

step 2 − keep the python installation in the default directory (like c:\python27) instead of installing in any other directory.
step 3 − next, set the environment variables for python scripts directory using the path as c:\python27\;c:\python27\scripts\;
git_review_install
step 4 − with version 2.7, python will install pip automatically. for older version of python 2.7, you can install pip as described in this link.
step 5 − run open git bash and install the git-review using the following command.
$ pip install git-review
linux
in linux, you can install git-review as described in the following steps −
step 1 users of linux platform do not have root access on shared host. hence, without root access, you can install git-review locally in user directory using the following commands −
virtualenv --python=/usr/bin/python2.6 virtualenv virtualenv/bin/pip install git-review==1.21
step 2 − you can extend the path to the local binaries using two ways −
path=$path:~/virtualenv/bin/ path=~/virtualenv/bin/:$path
step 3 − now, use the following command to set up the work with gerrit.
git review -s or ~/virtualenv/bin/git-review -s
step 4 − with root access, git-review can be installed using the following command.
sudo apt-get install git-review
step 5 − if there is no apt-get after installing python, then use the following commands.
$ sudo easy_install pip $ sudo pip install git-review==1.21
step 6 − run the following command to work with gerrit.
git review -s
mac os x
in mac, you can install the git-review using the following steps.
step 1 − install the homebrew from this link.
step 2 − next, install the git-review using the following command.
brew install git-review