Skip to content

gh-133928: Improvements to using/windows.rst #133952

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions Doc/using/windows.rst
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,10 @@
"Install", or run ``Add-AppxPackage <path to MSIX>`` in Windows Powershell.

After installation, the ``python``, ``py``, and ``pymanager`` commands should be
available. If they are not, click Start and search for "Manage app execution
aliases". This settings page will let you enable the relevant commands. They
will be labelled "Python (default)", "Python (default windowed)", and "Python
install manager".

If you have existing installations of Python, or you have modified your
:envvar:`PATH` variable, you may need to remove them or undo the modifications
in order for the commands to work. Old versions of Python can be reinstalled
using the Python install manager.
available. If you have existing installations of Python, or you have modified
your :envvar:`PATH` variable, you may need to remove them or undo the
modifications. See :ref:`pymanager-troubleshoot` for more help with fixing
non-working commands.

When you first install a runtime, you will likely be prompted to add a directory
to your :envvar:`PATH`. This is optional, if you prefer to use the ``py``
Expand Down Expand Up @@ -150,6 +145,10 @@
$> py -m this
...

The default runtime can be overridden with the :envvar:`PYTHON_MANAGER_DEFAULT`

Check warning on line 148 in Doc/using/windows.rst

View workflow job for this annotation

GitHub Actions / Docs / Docs

'envvar' reference target not found: PYTHON_MANAGER_DEFAULT [ref.envvar]
environment variable, or a configuration file. See :ref:`pymanager-config` for
information about configuration settings.

To launch a specific runtime, the ``py`` command accepts a ``-V:<TAG>`` option.
This option must be specified before any others. The tag is part or all of the
identifier for the runtime; for those from the CPython team, it looks like the
Expand Down Expand Up @@ -472,6 +471,10 @@
can be used in a shebang, even if it is not on your :envvar:`PATH`. This allows
the use of shebangs like ``/usr/bin/python3.12`` to select a particular runtime.

If no runtimes are installed, or if automatic installation is enabled, the
requested runtime will be installed if necessary. See :ref:`pymanager-config`
for information about configuration settings.

The ``/usr/bin/env`` form of shebang line will also search the :envvar:`PATH`
environment variable for unrecognized commands. This corresponds to the
behaviour of the Unix ``env`` program, which performs the same search, but
Expand Down
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy