Skip to content

Instantly share code, notes, and snippets.

@dedene
Forked from BlakeGardner/Install HTTPie.md
Created October 12, 2016 12:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dedene/89c39193bc925ee761342c2114518da7 to your computer and use it in GitHub Desktop.
Save dedene/89c39193bc925ee761342c2114518da7 to your computer and use it in GitHub Desktop.
Install HTTPie Mac OS X

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