Skip to content

Instantly share code, notes, and snippets.

@jpalala
Forked from BlakeGardner/Install HTTPie.md
Created May 15, 2018 00:35
Show Gist options
  • Save jpalala/3862bc6112f12107dfc882037d1f5d4e to your computer and use it in GitHub Desktop.
Save jpalala/3862bc6112f12107dfc882037d1f5d4e 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

The easy way

brew install httpie

Manually via pip

# 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