到自己安装django的位置,例如我的/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/django/db/backends/base中base.py注释掉
if version < (1, 3, 3):
raise ImproperlyConfigured("mysqlclient 1.3.3 or newer is required; you have %s" % Database.__version__)
再次运行 python3 manage.py runserver会出现端口占用(我是8000)
lsof -i:8000
kill -9 25225
网友评论