If you are facing an issue where wheels for pycairo couldn't be built, which is necessary for installing pyproject.toml-based projects and then you can try the below step to solve this issue.
python -m pip install --upgrade pip setuptools
sudo apt-get install libcairo2-dev
pip install pycairo
3
We're facing the same issue while attempting to install, to solve this you can follow this step First, installed the necessary development packages using the following command:sudo dnf install gobject-introspection-devel cairo-gobject-devel
Then, proceeded to install the specific library we needed, in our case, pycairo, using pip:
pip install PyGObject
This trick worked well for us in resolving the installation issue.
Installing pycairo in requires installing the necessary development packages,