Summary of Django and Python version upgrade issues

Summary of problems when upgrading Django3.0 to 4.1 and Python3.8 to 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
Solve error 1:
  • Uninstall and reinstall the upgraded versions of cffi and uWSGI. If you do not specify the version, the latest version will be downloaded by default.

报错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)
Solve error 2:
  • amqp, billiard, celery, kombu, vine, reinstall the latest version
  • Recommended version:

Guess you like

Origin blog.csdn.net/weixin_44649870/article/details/135223784