I had the same issue on Win 11 and solved it by installing setuptools with the following:
python3 -m pip install -U setuptools