Plone 6 buildout error related to pip and zc.recipe.egg-2.0.7.tar.gz

I get this error with a Plone 6.0a2 buildout within a Docker container. Any ideas?

Getting distribution for 'zc.recipe.egg==2.0.7'.
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: cannot import name '_main' from 'pip.__main__' (/tmp/plone/lib64/python3.10/site-packages/pip/
An error occurred when trying to install /tmp/tmptzzxyxeaget_dist/zc.recipe.egg-2.0.7.tar.gz. Look above this message for any errors that were output by pip install.
The command '/bin/sh -c bin/buildout' returned a non-zero code: 1

Well, buildout.coredev also uses zc.recipe.egg - this should work. Did you check if you are in sync with the a2 releases versions.cfg and requirements.txt?

yes, the same buildout works locally.

note that python 3.10 is not supported right now ...
I remember I got something similar with older pip in py3.8 but latest pip should fix this

Noted, but same issue with 3.9