Install specific git commit with pip

Tag: git , install , commit , pip Author: dqcsy Date: 2012-11-17

I'm developing a django app and I'm using pip to manage my requirements. How can I do to install a specific git's commit?

In my case I need to install this commit: https://github.com/aladagemre/django-notification/commit/2927346f4c513a217ac8ad076e494dd1adbf70e1

Best Answer

You can specify commit hash, branch name, tag.

$ pip install git+git:[email protected]ac8ad076e494dd1adbf70e1

It is a not well-documented feature, but you can find more information at http://www.pip-installer.org/en/latest/usage.html#pip-install