Installation

Installation#

As usual in Python, you may want to create and enable a virtual environment. To install lazylinop from your favorite public repository:

pip install lazylinop
conda install lazylinop

You can launch this python command to validate the installation and print the version of Lazylinop:

python -c 'from lazylinop import __version__; print(__version__)'

Dependencies

Lazylinop is delivered with the minimal set of package dependencies. If you want to test all features you can install the complementary dependencies:

pip install lazylinop[full]
conda install lazylinop
# fallback to pip
pip install lazylinop[full]

Latest nightly version

Since lazylinop is under active development, you can install the latest stable version using:

pip install git+https://gitlab.inria.fr/faustgrp/lazylinop.git@main

Creating a virtual environment#

Create and enable a dedicated environment:

python3 -m venv test_lazylinop_venv
# Second, you need to enable the virtual environment:
source ./test_lazylinop_venv/bin/activate
py -3 -m venv test_lazylinop_venv
# Second, you need to enable the virtual environment:
C:\> call .\test_lazylinop_venv\Scripts\activate
# The channel conda-forge is necessary for installing NumPy and SciPy.
conda config --add channels conda-forge
conda config --add channels lazylinop
# A Python version specifier (e.g. ``python==3.11``) might be added
# at the end of the command in order to use a specific version of Python.
conda create -y -n test_lazylinop_venv
conda activate test_lazylinop_venv

Then, if all worked correctly you should see the test_lazylinop_venv prompt of your virtual environment.