ImportError: DLL load failed: %1 不是...

Help
Anonymous
2011-06-24
2012-09-19

  • Anonymous
    2011-06-24

    Hello everyone:

    OS:WIN7 X64

    Python:python 2.7.1 x64

    python-mysql:MySQL-python-1.2.3

    when i type the "import MySQLdb",got a error message :

    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 应用程序。

    I seach this in google,but no one like me.

    How can i do it?

    Thx very much.

     
  • Andy Dustman
    Andy Dustman
    2011-06-24

    In English, the error seems to be, "Is not a valid Win32 application."

    Where did you get the MySQL-python package, or did you build it yourself?