美文网首页
Python——MySQLdb

Python——MySQLdb

作者: 帅气的_xiang | 来源:发表于2017-05-16 16:24 被阅读92次

在windows上安装python mysql模块后,导入模块时报 python ImportError: DLL load failed: %1 不是有效的 Win32 应用程序

这个是因为你安装了64位的python,然后安装32位的mysql模块,或者你安装了32位的python,然后安装64位的myql模块

怎么查看自己的python是多少位?可以看到是64位的

C:\Users\Kadima>python
Python 2.7.6 (default, May 16 2017, 16:23:24) [MSC v.1500 64 bit (AMD64)] on win
32
Type “help”, “copyright”, “credits” or “license” for more information.

>>> import MySQLdb

怎么看安装的模块是多少位?

MySQL-python-1.2.3.win-amd64-py2.7.exe

MySQL-python-1.2.5.win32-py2.7.exe

介个就很明显了。

下载地址:http://www.codegood.com/archives/129

相关文章

网友评论

      本文标题:Python——MySQLdb

      本文链接:https://www.haomeiwen.com/subject/kvvlxxtx.html