pip uninstall mysql-python pip uninstall mysqlclient pip uninstall PyMySQL 服务器上逐条执行这些命令,然后重新安装mysql数据库即可