installing MySQLdb with Python 2.1

Gerhard Häring gerhard.nospam at bigfoot.de
Mon Jun 25 05:38:42 EDT 2001


On Mon, 25 Jun 2001 02:35:35 GMT, Ken <ken_chiba at hotmail.com> wrote:
>Hi,
>
>I'm trying to install MySQLdb for use with Python 2.1, on a RH 7.1
>system.  Unfortunately, I succeeded using the RPM, and it embedded it
>into the Python 1.5.2 release (and not the 2.1).  How would I get this
>to work with 2.1?  (ie. when I type "import MySQLdb" in python2, there
>is an error...).

Hopefully this will work:

- get the source distribution of MySQLdb
- use "python2 setup.py build" to build it and
- "python2 setup.py install" to install it.

You can make RPMs with "python2 setup.py bdist_rpm".

Gerhard
-- 
mail:   gerhard <at> bigfoot <dot> de       registered Linux user #64239
web:    http://highqualdev.com              public key at homepage
public key fingerprint: DEC1 1D02 5743 1159 CD20  A4B6 7B22 6575 86AB 43C0
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))



More information about the Python-list mailing list