对我有用的解决方案 Windows :安装两个 32 -比特和 64 -位版本的 MySQL Connector/C 6.0.2 . 正常开放 Command Prompt 然后运行:
Windows
32
64
Command Prompt
pip install mysql-python