django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3.解決辦法


"E:\API_Manager_PlatForm\venv\lib\site-packages\django\db\backends\mysql\base.py"在這個路徑里件把base.py
if version < (1, 3, 3):
     raise ImproperlyConfigured("mysqlclient 1.3.3 or newer is required; you have %s" % Database.__version__) 

注釋掉 就行了

 

另一個問題

AttributeError: 'str' object has no attribute 'decode'

解決方法1:把decode改為encode即可。

解決思路2:
根據問題提示,意思是,屬性錯誤:“str”對象沒有屬性“decode”
python3.5和Python2.7在套接字返回值解碼上的區別 
python在bytes和str兩種類型轉換,所需要的函數依次是encode(),decode()

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM