From 993903feb1df629522c10e8961958d7943203522 Mon Sep 17 00:00:00 2001 From: Adnan Ahamed Himal Date: Sat, 25 Jul 2026 22:45:20 +0000 Subject: [PATCH 1/2] Add pipx and pip install instructions to README --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 13a3503b41..53ee6f6aa9 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,17 @@ Please note we recently accidentally made this repo private for a moment, and Gi - [Installation instructions →](https://httpie.io/docs#installation) - [Full documentation →](https://httpie.io/docs) +```bash +# pip +pip install httpie + +# pipx (recommended for CLI tools) +pipx install httpie + +# Homebrew +brew install httpie +``` + ## Features - Expressive and intuitive syntax From 1fc01be72c13c72252e2b99d84f51c1e0f0b25b5 Mon Sep 17 00:00:00 2001 From: Adnan Ahamed Himal Date: Sat, 25 Jul 2026 22:49:36 +0000 Subject: [PATCH 2/2] Fix Windows man pages guard: os.system to sys.platform os.system is a function object, comparing it to 'nt' always returns False. Changed to sys.platform == 'win32' for correct Windows detection. Closes #1898, #1903 --- httpie/output/ui/man_pages.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/httpie/output/ui/man_pages.py b/httpie/output/ui/man_pages.py index 0ba4974578..1b8fb58e92 100644 --- a/httpie/output/ui/man_pages.py +++ b/httpie/output/ui/man_pages.py @@ -2,6 +2,7 @@ import subprocess import os +import sys from httpie.context import Environment @@ -18,7 +19,7 @@ def is_available(program: str) -> bool: Check whether `program`'s man pages are available on this system. """ - if NO_MAN_PAGES or os.system == 'nt': + if NO_MAN_PAGES or sys.platform == 'win32': return False try: process = subprocess.run(