At the command line:
$ pip install gerritlib
Or, if you have virtualenvwrapper installed:
$ mkvirtualenv gerritlib $ pip install gerritlib