That should only happen on a vanilla Python installation if you are running a Python from /usr/local
(/usr/local/bin/python
).
The new workflow is
python -m build
python -m installer dist/*.whl
It will not install to /usr/local
however, as I hinted above.