Skip to content

Docs: how does rsconnect choose a Python version #592

Closed

Description

@lachlansimpson

The documentation for rsconnect-python has information on how Connect selects a Python version, but not on how rsconnect selects a version when deploying.

I have a vague feeling that the version of Python is decided by the environment from which the command is run - i.e., the first version of Python found on the PATH when using rsconnect deploy...

The section titled Creating a Manifest for Future Deployment alludes to this, but it is no where made explicit:

It will contain the package dependencies from the current Python environment, or from an alternative Python executable specified in the --python option.

https://docs.posit.co/rsconnect-python/#creating-a-manifest-for-future-deployment

I think we (Support, end users) would benefit from making this information explicit.

Activity

  1. tdstein commented on Nov 10, 2026

    @tdstein
    Collaborator

    🤖 Closing as resolved. The deploy docs now say how rsconnect-python picks the Python version: "Python Version" in docs/deploying.md lists .python-version, pyproject.toml requires-python, setup.cfg python_requires, and then the running interpreter (#648, #664). The package-dependency section lists the interpreter order: --python, VIRTUAL_ENV, CONDA_PREFIX, project .venv (#920). #949 tracks further work on separating the CLI's Python from the content's Python. If something is still unclear, please reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions