Hi Roman,<br><br>I am using MySQL with Python -- in Windows XP for a contract.<br><br>I hope my comments can be useful:<br><br>When dealing with installation on Python, I noticed that tiny details can make a difference -- e.g. first I installed the latest version of Python 3.x, but it did not attend what I am looking for: the need to put MySQLdb and Python to communicate together. <br>
<br>Then what I need to do was to downgrade the Python version to Python 2.5 which works nicely with the MySQLdb2.5 package. I also installed the ActivePython-2.6 to get it working with win32com. The ActivePython looks to me a more complete version of Python compiler.<br>
<br>Then, in the sequence I configured it to compile using Eclipse IDE.<br><br>Threader. <br><br>---------- Forwarded message ----------<br>From: Roman Gorbunov <<a href="mailto:r.d.gorbunov@gmail.com">r.d.gorbunov@gmail.com</a>><br>
To: <a href="mailto:python-list@python.org">python-list@python.org</a><br>Date: Sat, 19 Sep 2009 08:18:31 -0700 (PDT)<br>Subject: How to install pysqlite?<br>Hi all,<br>
<br>
I am trying to install pysqlite (Python interface to the SQLite). I<br>
downloaded the file with the package (pysqlite-2.5.5.tar.gz). And I<br>
did the following:<br>
<br>
gunzip pysqlite-2.5.5.tar.gz<br>
tar xvf pysqlite-2.5.5.tar<br>
cd pysqlite-2.5.5<br>
python setup.py install<br>
<br>
At the last step I have a problem. I get the following error message:<br>
error: command 'gcc' failed with exit status 1<br>
<br>
I found that other peoples also had this problem. For example here:<br>
<a href="http://forums.opensuse.org/applications/400363-gcc-fails-during-pysqlite-install.html" target="_blank">http://forums.opensuse.org/applications/400363-gcc-fails-during-pysqlite-install.html</a><br>
<br>
As far as I understood in the person had a problem because sqlite2 was<br>
not installed. But in my case, I have sqlite3 (I can run it from<br>
command line).<br>
<br>
May be I should change some paths in "setup.cfg"? At the moment I have<br>
there:<br>
#define=<br>
#include_dirs=/usr/local/<div id=":70" class="ii gt">include<br>
#library_dirs=/usr/local/lib<br>
libraries=sqlite3<br>
define=SQLITE_OMIT_LOAD_EXTENSION<br>
<br>
And if I type "which sqlite3" I get:<br>
/usr/bin/sqlite3<br>
<br>
Can anybody pleas help me with that problem.<br>
<br>
Thank you in advance.</div><br>