Fix Python – How to install Python package from GitHub? [duplicate]


Asked By – Colonel Panic

I want to use a new feature of httpie. This feature is in the github repo but not in the release on the python package index

How can I install the httpie package from the github repo? I tried

pip install

But I got an error ‘could not unpack’

In Nodejs, I can install packages from github like this

npm install git+

Now we will see solution for issue: How to install Python package from GitHub? [duplicate]


You need to use the proper git URL:

pip install git+

Also see the VCS Support section of the pip documentation.

Don’t forget to include the egg=<projectname> part to explicitly name the project; this way pip can track metadata for it without having to have run the script.

This question is answered By – Martijn Pieters

This answer is collected from stackoverflow and reviewed by FixPython community admins, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0