As of Python 3.12, distutils has been removed. However `qrcode/console_scripts.py` uses `pkg_resources`. The temporary fix is `pip install setuptools`. 