Skip to content

Installation

General Requirements

LabOne Q requires Python 3.9 or higher. To ease the maintenance of multiple installations and software packages, it is recommended to use Python environments through e.g. venv, pyenv, or conda.

LabOne Q also requires an installation of the Zurich Instruments LabOne Software. LabOne and LabOne Q follow a frequent release cycle with updates, performance improvements and new features. LabOne Q always supports the most recent LabOne release and currently requires LabOne version 24.10. Changes to this are mentioned in the release notes.

Latest Release

The following command will install the latest officially released LabOne Q version. Make sure to run this command in the Python environment into which LabOne Q should be installed.

pip install --upgrade laboneq

Setup for Development

A development setup is only needed if you need deeper insights into the software or when you want to contribute to the development. The LabOne Q repository is found here: https://github.com/zhinst/laboneq

git clone git@github.com:zhinst/laboneq.git <YOUR_DIR>
cd <YOUR_DIR>

Use your favorite shell to configure a virtual Python environment. With conda you can create and activate your virtual environment.

conda create -n laboneq anaconda
conda activate laboneq

Then make the Python package available as editable installations in-place (from repository root directory).

pip install -e .

Note

LabOne Q contains code written in Rust. To build the Rust code, you must have a Rust toolchain available. You can install Rust by following the instructions on the Rust website.

With this approach, Python code can be edited and executed in the source directories with your favorite IDE.

To build wheels for distribution, you can use maturin as follows to create a wheel for the current platform in the wheels directory:

pip install maturin
maturin build --release --out wheels