You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Docs: how does rsconnect choose a Python version #592
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.
🤖 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.tomlrequires-python, setup.cfgpython_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.
Activity
tdstein commentedon Nov 10, 2026
🤖 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.tomlrequires-python,setup.cfgpython_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.