lincolnloop / python-qrcode

Python QR Code image generator
https://pypi.python.org/pypi/qrcode
Other
4.25k stars 660 forks source link

3.12 qr cli: ModuleNotFoundError: No module named 'pkg_resources' #348

Open imba-tjd opened 7 months ago

imba-tjd commented 7 months ago

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

图片

astrojuanlu commented 3 months ago

Now this affects installations without setuptools in general, for example those created by uv venv.