mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +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
@@ -12,7 +12,7 @@ dependencies and is easy to install and use.
|
||||
Installing Gunicorn
|
||||
===================
|
||||
|
||||
Installing gunicorn is as easy as ``pip install gunicorn``. For more
|
||||
Installing gunicorn is as easy as ``python -m pip install gunicorn``. For more
|
||||
details, see the `gunicorn documentation`_.
|
||||
|
||||
.. _gunicorn documentation: https://docs.gunicorn.org/en/latest/install.html
|
||||
|
||||
@@ -27,10 +27,10 @@ command. For example:
|
||||
.. code-block:: console
|
||||
|
||||
# Install current stable version.
|
||||
$ pip install uwsgi
|
||||
$ python -m pip install uwsgi
|
||||
|
||||
# Or install LTS (long term support).
|
||||
$ pip install https://projects.unbit.it/downloads/uwsgi-lts.tar.gz
|
||||
$ python -m pip install https://projects.unbit.it/downloads/uwsgi-lts.tar.gz
|
||||
|
||||
.. _installation procedures: https://uwsgi-docs.readthedocs.io/en/latest/Install.html
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ You can install ReportLab with ``pip``:
|
||||
|
||||
.. console::
|
||||
|
||||
$ pip install reportlab
|
||||
$ python -m pip install reportlab
|
||||
|
||||
Test your installation by importing it in the Python interactive interpreter::
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@ If you installed Django with pip_, you can use the ``--upgrade`` or ``-U`` flag:
|
||||
|
||||
.. console::
|
||||
|
||||
$ pip install -U Django
|
||||
$ python -m pip install -U Django
|
||||
|
||||
.. _pip: https://pip.pypa.io/
|
||||
.. _virtualenv: https://virtualenv.pypa.io/
|
||||
|
||||
@@ -50,7 +50,7 @@ each Django project you create. While not mandatory, this is considered a best
|
||||
practice and will save you time in the future when you're ready to deploy your
|
||||
project. Simply type::
|
||||
|
||||
pip install virtualenvwrapper-win
|
||||
python -m pip install virtualenvwrapper-win
|
||||
|
||||
Then create a virtual environment for your project::
|
||||
|
||||
@@ -73,7 +73,7 @@ Django can be installed easily using ``pip`` within your virtual environment.
|
||||
In the command prompt, ensure your virtual environment is active, and execute
|
||||
the following command::
|
||||
|
||||
pip install django
|
||||
python -m pip install django
|
||||
|
||||
This will download and install the latest Django release.
|
||||
|
||||
@@ -93,8 +93,8 @@ Common pitfalls
|
||||
than one Python version installed.
|
||||
|
||||
* If you are connecting to the internet behind a proxy, there might be problem
|
||||
in running the command ``pip install django``. Set the environment variables
|
||||
for proxy configuration in the command prompt as follows::
|
||||
in running the command ``python -m pip install django``. Set the environment
|
||||
variables for proxy configuration in the command prompt as follows::
|
||||
|
||||
set http_proxy=http://username:password@proxyserver:proxyport
|
||||
set https_proxy=https://username:password@proxyserver:proxyport
|
||||
|
||||
Reference in New Issue
Block a user