Fixed #30367 -- Changed "pip install" to "python -m pip install" in docs, comments and hints.

This commit is contained in:
Ramiro Morales 2019-04-14 12:02:36 -03:00 committed by Mariusz Felisiak
parent ceab25bc6d
commit aed89adad5
26 changed files with 49 additions and 47 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -49,7 +49,7 @@ To build the documentation locally, install Sphinx:
.. console::
$ pip install Sphinx
$ python -m pip install Sphinx
Then from the ``docs`` directory, build the HTML:

View file

@ -58,7 +58,7 @@ You'll need a few things before getting started:
* An install of some required Python packages::
$ pip install wheel twine
$ python -m pip install wheel twine
* Access to Django's record on PyPI. Create a file with your credentials:
@ -305,10 +305,10 @@ Now you're ready to actually put the release out there. To do this:
$ easy_install https://www.djangoproject.com/m/releases/$MAJOR_VERSION/Django-$RELEASE_VERSION.tar.gz
$ deactivate
$ mktmpenv
$ pip install https://www.djangoproject.com/m/releases/$MAJOR_VERSION/Django-$RELEASE_VERSION.tar.gz
$ python -m pip install https://www.djangoproject.com/m/releases/$MAJOR_VERSION/Django-$RELEASE_VERSION.tar.gz
$ deactivate
$ mktmpenv
$ pip install https://www.djangoproject.com/m/releases/$MAJOR_VERSION/Django-$RELEASE_VERSION-py3-none-any.whl
$ python -m pip install https://www.djangoproject.com/m/releases/$MAJOR_VERSION/Django-$RELEASE_VERSION-py3-none-any.whl
$ deactivate
This just tests that the tarballs are available (i.e. redirects are up) and