1. 程式人生 > >關於報錯:django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.3 or newer is required; you have 0.7.11.None

關於報錯:django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.3 or newer is required; you have 0.7.11.None

線上專案轉到測試,setting連線本地資料庫報錯。

 1 django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.3 or newer is required; you have 0.7.11.None 

Python安裝路勁下的Python36-32\Lib\site-packages\django\db\backends\mysql\base.py檔案下。

註釋下面語句

1 if version < (1, 3, 3):
2     raise ImproperlyConfigured("
mysqlclient 1.3.3 or newer is required; you have %s" % Database.__version__)