Installation#

Tip

To prevent conflicts with other packages, it’s a good practice to install Python packages in a virtual environment. We suggest using either conda or venv to create and manage virtual environments.

Let’s start by creating and activating a new virtual environment for LISBET. We will call this environment lisbetenv, but feel free to use any other name.

$ conda create -n lisbetenv python=3.12 pip wheel setuptools
$ conda activate lisbetenv
$ python3 -m venv lisbetenv
$ source lisbetenv/bin/activate
> conda create -n lisbetenv python=3.12 pip wheel setuptools
> conda activate lisbetenv
> pip install torch torchvision --index-url https://download.pytorch.org/whl/cu126
> python -m venv lisbetenv
> lisbetenv\Scripts\activate

After creating and activating the lisbetenv environment, we can install the library using pip:

$ pip install lisbet

Depending on your system configuration, installation might take up to a few minutes.

Development Installation#

If you are a developer and want to contribute to the project, you should install the development dependencies.

$ git clone https://github.com/BelloneLab/lisbet.git
$ cd lisbet
$ pip install -e ".[dev]"