I think the reason in my case for this error is not the Python version, but rather that the Mac architecture is different than those available for built distributions I have M1 which is ARM64 and for Macos there is only available x86-64. So I cannot install ruptures this way.