#29922: Windows/Linux,macOS button has opposite syntax
-------------------------------------+-------------------------------------
     Reporter:  Steven Erredge       |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  Documentation        |                  Version:  master
     Severity:  Normal               |               Resolution:  invalid
     Keywords:  Linux, macOS,        |             Triage Stage:
  Windows, tutorial                  |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  1                    |                    UI/UX:  1
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 The commands are correct.

 On macOS/Linux (with bash) you'll get:

 {{{
 $ py -m django --version
 -bash: py: command not found
 }}}

 Assuming you have Python on your `PATH`, or an active virtual environment
 **both** commands would work on Windows, but as Tim says `py` is the
 Python Launcher that's installed on Windows.

 See: https://docs.python.org/3/using/windows.html#python-launcher-for-
 windows

 Whilst you'll always have `python` available with an active `venv`,
 **not** having `python` on your `PATH` normally and using `py` to select
 the desired interpreter is (I think) recommended. (The install notes say
 "If selected, the install directory will be added to the system PATH" but
 don't say "**Don't do this**, as perhaps they might....)

 If something is missing here, please reply and we can re-open if there's a
 mistake. Thanks!

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29922#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.d623e42c30d3b7c00629132cb46dad08%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to