In my case I had an issue on CI runner and I had to re-install setuptools
python3 -m pip install --upgrade pip setuptools