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

  • Anonymous - 2011-06-24

    Hello everyone:

    OS:WIN7 X64

    Python:python 2.7.1 x64


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

    import MySQLdb

    Traceback (most recent call last):

    File "<stdin>", line 1, in <module>

    File "C:\python27\lib\site-packages\", line 19, in <module>

    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?


Log in to post a comment.