Installation in Python
libsemigroups_pybind11 is compatible with Python versions 3.10 to 3.14.
Installing with pip
It's possible to install libsemigroups_pybind11 using pip by doing
one of the following (depending on your system and setup):
Installing with mamba
This installation method assumes that you have anaconda or miniconda installed. See the getting started and miniconda download page on the conda website.
It might be a good idea to create and activate a conda/mamba environment
to contain the installation of the libsemigroups_pybind11:
Here's the contents of sample environment.yml file that you can use to create
a mamba environment that contains everything you might need to complete this
tutorial.
Create a file named environment.yml and copy/paste the following into that
file:
Save the file and then in the terminal:
Every time you want to use libsemigroups_pybind11 make sure type the
following into the terminal:
Adding libsemigroups as a dependency to your project using uv
If you manage a Python project with uv, you can add libsemigroups as a dependency as follows:
For more information, see uv's guide on managing dependencies.