Django3.0升级到4.1,Python3.8升级到3.11.6问题大汇总

报错1:ERROR: Could not build wheels for cffi, uWSGI, which is required to install pyproject.toml-based projects

ERROR: Could not build wheels for cffi, uWSGI, which is required to install pyproject.toml-based projects
解决报错1:
  • cffi, uWSGI 这两个包卸载重装升级版本,不指定版本,默认下载最新版本。

报错2:ImportError: cannot import name ‘formatargspec’ from ‘inspect’

ImportError: cannot import name 'formatargspec' from 'inspect' (/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/inspect.py)
解决报错2:
  • amqp、billiard、celery、kombu、vine,重装最新版本
  • 推荐版本: