解决报错:AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter’

这是python3.12的常见问题,解决方案如下:

Terminal window
python -m pip install -U pip setuptools wheel