Installation ============ Install the pyRobotiqGripper python package using pip or uv. .. youtube:: TuXBFMDqD1g We recommend using `uv `_, a fast, modern Python package and project manager, but a traditional pip installation works just as well. Using uv (recommended) ----------------------- Install pyrobotiqgripper with minimal dependencies. .. code-block:: bash uv add pyrobotiqgripper Install pyrobotiqgripper with all dependencies to have extra features like: - Gripper command and status history accessible as a pandas table - A CLI (Command Line Tool) to control the gripper with a mouse or a joystick. .. code-block:: bash uv add "pyrobotiqgripper[all]" .. note:: uv automatically create a virtual environment in the project folder ./.venv .. note:: If not already installed, follow the instructions to install uv from the official documentation: https://docs.astral.sh/uv/getting-started/installation/ .. note.:: ``uv add`` requires a uv-managed project, i.e. a directory with a ``pyproject.toml``. If your project doesn't have one yet, create it first: .. code-block:: bash uv init Using pip --------- It is good practice to work in a virtual environment. Here below are instructions to create and activate virtual environment to install pyrobotiq gripper in it. .. code-block:: bash #Create a virtual environment ./.venv python -m venv .venv If you are on Windows use the following command to activate the virtual environment .. code-block:: bash .venv\Scripts\activate If you are on macOS/Linux use the following command to activate the virtual environment .. code-block:: bash source .venv/bin/activate Install pyrobotiqgripper with minimal dependencies. .. code-block:: bash # base install: gripper control only pip install pyRobotiqGripper Install pyrobotiqgripper with all dependencies to have extra features like: - Gripper command and status history accessible as a pandas table - A CLI (Command Line Tool) to control the gripper with a mouse or a joystick. .. code-block:: bash # or, with optional features (joystick CLI, history DataFrame helpers) pip install "pyRobotiqGripper[all]"