擅长:python、mysql、java
<p>我只是通过看这里提到的其他选项得到了答案。
实际上错误是</p>
<ul>
<li>我已经在64位机器上安装了32位的python3.7.4。你知道吗</li>
<li>代码正在查找下面的路径,但它在程序文件而不是程序文件(x86)中指向错误的路径</li>
</ul>
<p>C:\Program Files(x86)\MySQL\MySQL连接器C 6.1\lib</p>
<p>我已经安装了一个新的Python 3.7 64位版本,并且在安装MySQL connector时,我已经将安装路径更改为上述路径,现在它运行良好。你知道吗</p>
<p>谢谢大家抽出时间来帮忙</p>