Skip to content

Python commands don't work with Python Install Manager #139

@splatteredbits

Description

@splatteredbits

Describe the bug

After installing Python Install Manager and after Python Install Manager installs a default runtime, 3.13.5, python commands still don't work:

> python -c "import sys; print(sys.executable);"
Usage:
    py <regular Python options>
                         Launch the default runtime with specified options. This
                         is the equivalent of the python command.
    py -V:<TAG>          Launch runtime identified by <TAG>, which should
                         include the company name if not PythonCore. Regular
                         Python options may follow this option.
    py -3<VERSION>       Equivalent to -V:PythonCore\3<VERSION>. The version
                         must begin with the digit 3, platform overrides are
                         permitted, and regular Python options may follow. py -3
                         is the equivalent of the python3 command.
    py exec <any of the above>
                         Equivalent to any of the above launch options, and the
                         requested runtime will be installed if needed.
    py help [<CMD>]      Show help for Python installation manager commands
    py install <TAG>     Download new Python runtimes, or pass --update to
                         update existing installs.
    py list [<FILTER>]   Show installed Python runtimes, optionally filtering by
                         <FILTER>.
    py uninstall <TAG>   Remove one or more runtimes from your machine. Pass
                         --purge to clean up all runtimes and cached files.

Find additional information at https://docs.python.org/dev/using/windows.

To Reproduce
Steps to reproduce the behavior:

  1. Install Python Install Manager.
  2. Install Python 3.13.5: pymanager install 3.13.5.
  3. Run python -c "import sys; print(sys.executable)".
  4. Note the error.

Expected behavior

I expect that python commands work after Python Install Manager installs at least one runtime.

Additional context

I'm trying to get Python installed and configured on unattended, non-interactive Jenkins build agent servers. These build servers run Node.js builds, which includes installing Node.js modules. Some modules execute python commands when they get installed. These python commands are currently failing because of this problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions