How to install a Github package using pip

Suppose you are working on a Python project and want to quickly install a public package from Github, you can do this using a command like:

pip install -e git://github.com/someusername/package-name.git#egg=some-packagename

If the repository is private and your SSH private key has been added to the repository’s access list, then you can access it using a command like:

pip install -e git+ssh://git@github.com/someusername/package-name.git#egg=some-packagename

Leave a Reply

Your email address will not be published. Required fields are marked *