1、AttributeError: module 'distutils' has no attribute 'version'
解决方案:pip install setuptools==59.5.0
2、TypeError: Descriptors cannot be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
1. Downgrade the protobuf package to 3.20.x or lower.
2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).
More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
解决方案:pip install protobuf==3.20.*
3、Traceback (most recent call last):
File "<module1>", line 19, in <module>
AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'
解决方案:pip uninstall Pillow
pip install Pillow==9.5.0
4、
解决方案:将红框部分 pip uninstall scipy pip install -U scipy
5,pip install pyaudio错误
解决方案:conda install pyaudio
6,ImportError: cannot import name 'packaging' from 'pkg_resources'‘
解决方案:
检查setuptools是否为70.0.0版本:pip list | grep setuptools
降低版本:python -m pip install setuptools==69.5.1