I used setuptools to get the initial download of MySQL-python. “easy_install –b temp mysql-python”. But installation failed due to 64-bit MySQL libraries (and the registry setting in site.cfg).
- First, I downloaded the no-install 32-bit version of MySQL extracted it out and copied the libraries directory to “C:\Program Files\MySQL\lib32”. Now I have the 32-bit libraries in “C:\Program Files\MySQL\lib32” and the 64-bit libraries in “C:\Program Files\MySQL\lib”.
- Then tweaked the MySQL-python site.cfg so the registry_key was correct (registry_key = SOFTWARE\MySQL AB\MySQL Server 5.1) .
- Next tweaked the setup_windows.py so it would use lib32 instead of the 64-bit libraries (library_dirs = [ os.path.join(mysql_root, r'lib32\opt') ]
- Finally, it was a simple run of “python setup.py clean”; “python setup.py install” to get MySQL-python installed.
No comments:
Post a Comment