While working on a Django project, I needed to replace one of the existing pysolr package with a forked version on github.

First, I uninstalled the existing package.

$ pip uninstall pysolr

Then, I got the url for the zipball from github and used the following command:

$ pip install https://github.com/anti-social/pysolr/zipball/master