Installation
macOS
On macOS, HTTPie can be installed via Homebrew
- $ brew install httpie
A MacPorts port is also available:
- $ port install httpie
Linux
Most Linux distributions provide a package that can be installed using thesystem package manager, for example:
- # Debian, Ubuntu, etc.
- $ apt-get install httpie
- # Fedora
- $ dnf install httpie
- # CentOS, RHEL, ...
- $ yum install httpie
- # Arch Linux
- $ pacman -S httpie
Windows, etc.
A universal installation method (that works on Windows, Mac OS X, Linux, …,and always provides the latest version) is to use pip:
- # Make sure we have an up-to-date version of pip and setuptools:
- $ pip install --upgrade pip setuptools
- $ pip install --upgrade httpie
(If pip
installation fails for some reason, you can tryeasy_install httpie
as a fallback.)
Python version
Python version 3.6 or greater is required.
Unstable version
You can also install the latest unreleased development version directly fromthe master
branch on GitHub. It is a work-in-progress of a future stablerelease so the experience might be not as smooth.
On macOS you can install it with Homebrew:
- $ brew install httpie --HEAD
Otherwise with pip
:
- $ pip install --upgrade https://github.com/jakubroztocil/httpie/archive/master.tar.gz
Verify that now we have thecurrent development version identifier-dev
suffix, for example:
- $ http --version
- 1.0.0-dev