Skip to content

Instantly share code, notes, and snippets.

@developerinlondon
Forked from BlakeGardner/Install HTTPie.md
Created July 9, 2014 13:54
Show Gist options
  • Save developerinlondon/d7ee89e5daa2a8312c31 to your computer and use it in GitHub Desktop.
Save developerinlondon/d7ee89e5daa2a8312c31 to your computer and use it in GitHub Desktop.

This is a quick guide on installing HTTPie for Mac OS X systems. This is also useful if you want the python package management utility pip. An installed copy of Homebrew is a prerequisite.

HTTPie

# install the python package provided with homebrew
brew install python

# install HTTPie with the pip utility
pip install httpie

# add the shared python folder to your path
nano ~/.bash_profile

# Add the following line to your ~/.bash_profile
export PATH=/usr/local/share/python:$PATH

# open a new terminal and give it a go
http ifconfig.me/all.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment