From aed89adad54a977829c4f180b036033e031ebcc7 Mon Sep 17 00:00:00 2001 From: Ramiro Morales Date: Sun, 14 Apr 2019 12:02:36 -0300 Subject: Fixed #30367 -- Changed "pip install" to "python -m pip install" in docs, comments and hints. --- docs/internals/contributing/writing-code/coding-style.txt | 2 +- docs/internals/contributing/writing-code/javascript.txt | 2 +- docs/internals/contributing/writing-code/unit-tests.txt | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'docs/internals/contributing/writing-code') diff --git a/docs/internals/contributing/writing-code/coding-style.txt b/docs/internals/contributing/writing-code/coding-style.txt index 67602b87da..ab7cc0baa9 100644 --- a/docs/internals/contributing/writing-code/coding-style.txt +++ b/docs/internals/contributing/writing-code/coding-style.txt @@ -96,7 +96,7 @@ Imports .. console:: - $ pip install isort + $ python -m pip install isort $ isort -rc . This runs ``isort`` recursively from your current directory, modifying any diff --git a/docs/internals/contributing/writing-code/javascript.txt b/docs/internals/contributing/writing-code/javascript.txt index 941fa085e8..bcb83d18bc 100644 --- a/docs/internals/contributing/writing-code/javascript.txt +++ b/docs/internals/contributing/writing-code/javascript.txt @@ -55,7 +55,7 @@ version. To run it: .. console:: - $ pip install closure + $ python -m pip install closure $ python django/contrib/admin/bin/compress.py Behind the scenes, ``compress.py`` is a front-end for Google's diff --git a/docs/internals/contributing/writing-code/unit-tests.txt b/docs/internals/contributing/writing-code/unit-tests.txt index 51d1e61313..e0369b5800 100644 --- a/docs/internals/contributing/writing-code/unit-tests.txt +++ b/docs/internals/contributing/writing-code/unit-tests.txt @@ -30,8 +30,8 @@ Next, clone your fork, install some requirements, and run the tests:: $ git clone git@github.com:YourGitHubName/django.git django-repo $ cd django-repo/tests - $ pip install -e .. - $ pip install -r requirements/py3.txt + $ python -m pip install -e .. + $ python -m pip install -r requirements/py3.txt $ ./runtests.py Installing the requirements will likely require some operating system packages @@ -68,7 +68,7 @@ and other checks (such as :ref:`import sorting `, the :ref:`code formatting `), install and run the ``tox`` command from any place in the Django source tree:: - $ pip install tox + $ python -m pip install tox $ tox By default, ``tox`` runs the test suite with the bundled test settings file for @@ -240,7 +240,7 @@ You can find these dependencies in `pip requirements files`_ inside the ``tests/requirements`` directory of the Django source tree and install them like so:: - $ pip install -r tests/requirements/py3.txt + $ python -m pip install -r tests/requirements/py3.txt If you encounter an error during the installation, your system might be missing a dependency for one or more of the Python packages. Consult the failing -- cgit v1.3