Saturday, July 2, 2016

Re: Contribute to Django - Python 3 or Python 2

On Sat, Jul 02, 2016 at 07:04:31AM -0700, premdjango wrote:
> Tim -
> The reason I said its used in most of the places is because -
>
> for example:
>
> pip install -e /path/to/your/local/clone/django/
>
>
> I would expect pip3 install of pip..

This looks like a bit of a misunderstanding. Using executables called
``pip``, or ``python``, means "use whatever version of Python you have
set as default," which in some cases will be Python 2, but in other
cases Python 3. If you create your virtualenv or venv using Python
3.5, then running just ``pip`` or ``python`` with that venv activated
will indeed use Python 3.5.

Using ``pip3`` in the docs would be misleading, because it would
indicate that only Python 3 is supported, while you're free to choose
either Python 2 or Python 3 (at least for now).

Of course, many people (myself included) will recommend going with
Python 3, but 2.7 is still a valid choice.

Cheers,

Michal

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/20160702175209.GY29054%40koniiiik.org.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment