From e2d43c14ce14475118941ce1ad8a355f7ed2f581 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Schoentgen?= Date: Wed, 5 May 2021 14:17:04 +0200 Subject: [PATCH] Prefer usage of "python -m pip" instead of "pip" (#1059) * Prefer usage of "python -m pip" instead of "pip" It will prevent issues when users think that they are using the correct `pip` version. It can refers to the one from the OS Python installation, or even worse to a Python 2 installation. Let's be clear on how to install stuff. Also used short version of `pip` arguments, because we are all lazy :) * Apply suggestions from code review --- CHANGELOG.rst | 2 +- CONTRIBUTING.rst | 2 +- README.rst | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index a1947e55..747b92f9 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -172,7 +172,7 @@ This project adheres to `Semantic Versioning `_. * Added fish shell completion (located in ``extras/httpie-completion.fish`` in the GitHub repo). * Updated ``requests`` to 2.10.0 so that SOCKS support can be added via - ``pip install requests[socks]``. + ``python -m pip install requests[socks]``. * Changed the default JSON ``Accept`` header from ``application/json`` to ``application/json, */*``. * Changed the pre-processing of request HTTP headers so that any leading diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index 0e61ccea..700ad69f 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -193,7 +193,7 @@ Install HTTPie in editable mode with all the dependencies: .. code-block:: powershell - pip install --upgrade -e . -r requirements-dev.txt + python -m pip install --upgrade --editable . -r requirements-dev.txt You should now see ``(httpie)`` next to your shell prompt, and the ``http`` command should point to your development copy: diff --git a/README.rst b/README.rst index b549c1a7..98529010 100644 --- a/README.rst +++ b/README.rst @@ -175,7 +175,7 @@ Otherwise with ``pip``: .. code-block:: bash - $ pip install --upgrade https://github.com/httpie/httpie/archive/master.tar.gz + $ python -m pip install --upgrade https://github.com/httpie/httpie/archive/master.tar.gz Verify that now we have the