i had similar problems once which orginated from doubled python packages with different versions.
in my case i had pip and/or setuptools installed via pip as newer versions in my user .local/lib than what were installed by my systems package manager. i remember i had errors with building a wheel to, so maybe it’s a similar problem with your configuration @Terlan
**note**: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pyzmq
Successfully built stringcase jupyter-contrib-core jupyter-latex-envs
Failed to build pyzmq
ERROR: Could not build wheels for pyzmq, which is required to install pyproject.toml-based projects
I tried installing the pyzmq separately , it was successful,
The retried my package installation but failed again
I have installed setup tools and wheel again for same python and pip version.
i checked via pip list --path /usr/lib/python3.11/site-packages and pip list --path ~/.local/lib/python3.11/site-packages if pip/setuptools are installed in both system and user space.
then i uninstalled setuptools/pip user installations via pip uninstall.
In may case, specifying python 3.9 completed the build.
I created an environment with conda like this. conda create -n ipyemail -c conda-forge jupyterlab cookiecutter nodejs yarn python=3.9