Instalar MySQL-python (MySQLdb) no pudo resolver el problema bajo python2

Puede instalar PyMySQL (pymysql), "pip instalar PyMySQL", y luego agregar el código al archivo __init__.py:

importación pymysql 
pymysql.install_as_MySQLdb ()

 

Además, python3 ya no admite MySQL-pitón.

Supongo que te gusta

Origin www.cnblogs.com/lucky-heng/p/12632096.html
Recomendado
Clasificación