Skip to content

[Proposal] Add optional --python arg when --uv is used to create venv #3559

Closed

Description

@kwang-12

Proposal

Add support for specifying a custom Python interpreter when creating a uv virtual environment via isaaclab.sh.
This would extend the existing --uv option to accept an optional --python /path/to/python argument. The --help text would also be updated to reflect the new syntax and provide usage examples.

Motivation

Currently isaaclab.sh always uses the default python3 in the user’s PATH when creating a uv environment.
On systems with multiple Python versions installed (e.g., Ubuntu 22.04 ships with Python 3.10 but Isaac Sim 5.X requires Python 3.11), the only way to force a specific interpreter is to manually edit the script or run uv venv directly.

Supporting a --python flag would let users do this directly from the script without manual patching.

Alternatives

  1. Manually run uv venv --python /path/to/python and then alias isaaclab.sh yourself (works but bypasses the helper script). or
  2. Edit the isaaclab.sh script to hardcode your preferred Python path (not sustainable across updates).

Neither of these alternatives is user-friendly compared to a built-in --python flag.

Additional context

Example usage after feature implementation:

        1.a create env_isaaclab with system python3
        isaaclab.sh --uv
        1.b create myenv with system python3
        isaaclab.sh --uv myenv               
        1.c create myenv with specified Python 3.11
        isaaclab.sh --uv myenv --python ${HOME}/isaacsim50/kit/python/bin/python3

Checklist

  • I have checked that there is no similar issue in the repo (required)

Acceptance Criteria

Add the criteria for which this task is considered done. If not known at issue creation time, you can add this once the issue is assigned.

  • isaaclab.sh supports an optional --python /path/to/python argument following --uv to override the interpreter used by uv venv.
  • print_help (or equivalent) reflects the new syntax and shows example usage.

Fixes: #3560

Activity

  1. RandomOakForest commented on Sep 26, 2025

    @RandomOakForest
    Collaborator

    Thank you for posting this. The team will review it.

  2. added
    enhancement
    on Sep 26, 2025
  3. AntoineRichard commented on Aug 27, 2026

    @AntoineRichard
    Collaborator

    Thanks for this, @kwang-12 — pinning the interpreter is a reasonable ask, and we appreciate that you opened #3560 with an implementation.

    Since then, #4579 moved installation out of the shell script and into the Python CLI: isaaclab.sh is now a thin launcher that execs isaaclab.cli, and the setup_uv_env() / uv venv --python ... code your patch targeted no longer exists. The interpreter is picked by determine_python_version() in source/isaaclab/isaaclab/cli/utils.py. Closing as obsolete — if you'd still like an override on the new CLI flow, please open a fresh issue or reopen this one.


    🤖 This issue was reviewed as part of an AI-assisted triage of the Isaac Lab backlog, with automated verification against the current codebase. If we got this wrong, please reopen — we'd rather hear about it!

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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions