Skip to content

Instantly share code, notes, and snippets.

@BlakeGardner
Last active November 5, 2020 08:43
  • Star 32 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save BlakeGardner/5586954 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
@crmpicco
Copy link

Handy, thanks! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment