[解决“不是有效的win32应用程序”问题帅宏军用VC2013编译了一个程序,在Windows8、Windows7(64位、32位)下都能正常运行。但在WinXP,Win2003下运行时,却报错不能运行,
python ImportError: DLL load failed: %1 不是有效的 Win32 应用程序
报错分析:
在windows上安装python mysql模块后,导入模块时报 python ImportError: DLL load failed: %1 不是有效的 Win32 应用程序
这个是因为你安装了64位的python,然后安装32位的mysql模块,或者你安装了32位的python,然后安装64位的myql模块
怎么查看自己的python是多少位?
报错信息: >>> import MySQLdb Traceback (most recent call last): File " ", line 1, in File "C:\Python27\lib\site-packages\MySQLdb\__init__.py", line 19, in
import _mysql ImportError: DLL load failed: %1 不是有效的 Win32 应用程序。 >>> quit Use quit() or Ctrl-Z plus Return to exit
怎么查看自己的python是多少位? C:\Users\jerome>python Python 2.7.9 (default, Dec 10 2014, 12:28:03) [MSC v.1500 64 bit (AMD64)] on win 32 Type "help", "copyright", "credits" or "license" for more information. >>>
怎么看安装的模块是多少位?
MySQL-python-1.2.3.win-amd64-py2.7.exe
MySQL-python-1.2.5.win32-py2.7.exe[环境: Win7 64位 Python2.7.2 64位 Oracle client 32位 cx_Oracle: Windows amd64 Installer (Oracle 11g, Python 2.7) 在python终端报错: >>> import c
64位 mysqldb 下载地址:
The distributions are:
[今天在使用CLR Profile程序时,用来监测网站内存分配情况,但网站报错说:1%,不是有效的Win32应用程序,在没有使用 CLR Profile 程序之前,网站访问一直是正常的.在上网查了