1How to install Python package from GitHub?
2
3I want to use a new feature of httpie. This feature is in the github repo https://github.com/jkbr/httpie but not in the release on the python package index https://pypi.python.org/pypi/httpie
4
5How can I install the httpie package from the github repo? I tried
6
7pip install https://github.com/jkbr/httpie
8But I got an error 'could not unpack'
9
10In Nodejs, I can install packages from github like this
11
12npm install git+https://github.com/substack/node-optimist.git
13Mar 2013 - Colonel Panic
14You need to use the proper git URL:
15
16pip install git+https://github.com/jkbr/httpie.git#egg=httpie
17Also see the VCS Support section of the pip documentation.
18
19Don’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 setup.py script.
20
21Mar 2013 - Martijn Pieters
22To install Python package from github, you need to clone that repository.
23
24git clone https://github.com/jkbr/httpie.git
25Then just run the setup.py file from that directory,
26
27sudo python setup.py install