Installing pyMySQL

John Hunter jdhunter at ace.bsd.uchicago.edu
Tue Oct 8 14:48:48 EDT 2002


>>>>> "Lindstrom" == Lindstrom Greg <- glinds <Greg.Lindstrom at acxiom.com>> writes:

    Lindstrom> Hi, all- I am having a world of trouble installing
    Lindstrom> pyMySQL on my Windows NT 4.0 box (ActiveState Python
    Lindstrom> 2.2.1).  My current problem occurs when I am trying to
    Lindstrom> execute setup.py install when the linker complains
    Lindstrom> about not being able to find mysqlclient_r.lib (sure
    Lindstrom> enough...I can't fine it, either :-).  Can any of you
    Lindstrom> help me out?  Or is there a more windows friendly
    Lindstrom> database interface to use?

This is a new library that ships with more recent versions of mysql.
The easiest fix is to edit setup.py and replace this line

  mysqlclient = thread_safe_library and "mysqlclient_r" or "mysqlclient"

with 

  mysqlclient = thread_safe_library and "mysqlclient"

John Hunter




More information about the Python-list mailing list