mirror of
https://github.com/django/django.git
synced 2025-06-03 18:49:12 +00:00
Refs #25584 -- Corrected note about source of SyntaxErrors when installing Django 1.9.
This commit is contained in:
parent
d638cdc42a
commit
f5af68ba68
@ -1012,12 +1012,12 @@ a Django application with this structure::
|
|||||||
jquery.js
|
jquery.js
|
||||||
jquery.min.js
|
jquery.min.js
|
||||||
|
|
||||||
.. _syntax-error-old-pip-django-19:
|
.. _syntax-error-old-setuptools-django-19:
|
||||||
|
|
||||||
``SyntaxError`` when installing Django with pip ≤ 1.5.6
|
``SyntaxError`` when installing Django setuptools 5.5.x
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
When installing Django 1.9+ with pip ≤ 1.5.6, you'll see::
|
When installing Django 1.9+ with setuptools 5.5.x, you'll see::
|
||||||
|
|
||||||
Compiling django/conf/app_template/apps.py ...
|
Compiling django/conf/app_template/apps.py ...
|
||||||
File "django/conf/app_template/apps.py", line 4
|
File "django/conf/app_template/apps.py", line 4
|
||||||
@ -1031,9 +1031,10 @@ When installing Django 1.9+ with pip ≤ 1.5.6, you'll see::
|
|||||||
^
|
^
|
||||||
SyntaxError: invalid syntax
|
SyntaxError: invalid syntax
|
||||||
|
|
||||||
It's safe to ignore these errors (Django will still install just fine), and you
|
It's safe to ignore these errors (Django will still install just fine), but you
|
||||||
can avoid them by upgrading pip to a more recent version using
|
can avoid them by upgrading setuptools to a more recent version. If you're
|
||||||
``pip install -U pip``.
|
using pip, you can upgrade pip using ``pip install -U pip`` which will also
|
||||||
|
upgrade setuptools.
|
||||||
|
|
||||||
Miscellaneous
|
Miscellaneous
|
||||||
~~~~~~~~~~~~~
|
~~~~~~~~~~~~~
|
||||||
|
@ -164,9 +164,9 @@ This is the recommended way to install Django.
|
|||||||
|
|
||||||
1. Install pip_. The easiest is to use the `standalone pip installer`_. If your
|
1. Install pip_. The easiest is to use the `standalone pip installer`_. If your
|
||||||
distribution already has ``pip`` installed, you might need to update it if
|
distribution already has ``pip`` installed, you might need to update it if
|
||||||
it's outdated. (If it's outdated, you'll know because installation won't
|
it's outdated. If it's outdated, you'll know because installation won't
|
||||||
work. You might see some :ref:`harmless SyntaxErrors
|
work. If you're using an old version of setuptools, you might see some
|
||||||
<syntax-error-old-pip-django-19>` also.)
|
:ref:`harmless SyntaxErrors <syntax-error-old-setuptools-django-19>` also.
|
||||||
|
|
||||||
2. Take a look at virtualenv_ and virtualenvwrapper_. These tools provide
|
2. Take a look at virtualenv_ and virtualenvwrapper_. These tools provide
|
||||||
isolated Python environments, which are more practical than installing
|
isolated Python environments, which are more practical than installing
|
||||||
|
Loading…
x
Reference in New Issue
Block a user