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.
brew install 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
Thanks