mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #30367 -- Changed "pip install" to "python -m pip install" in docs, comments and hints.
This commit is contained in:
committed by
Mariusz Felisiak
parent
ceab25bc6d
commit
aed89adad5
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 <coding-style-imports>`, the
|
||||
:ref:`code formatting <coding-style-python>`), 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
|
||||
|
||||
Reference in New Issue
Block a user