installing "pysqlite"

Diez B. Roggisch deets at nospam.web.de
Tue Feb 27 10:03:07 EST 2007


Nader wrote:

> On Feb 27, 12:44 pm, "Paul Boddie" <p... at boddie.org.uk> wrote:
>> On 27 Feb, 10:31, Nader Emami <e... at knmi.nl> wrote:
>>
>> > I have installed "TurboGears" and I would install 'pysqlite' also. I am
>> > a user on a Linux machine. If I try to install the 'pysqlite' with
>> > 'easy_install' tool I get the next error message. The error message is
>> > longer than what I send here.
>>
>> [...]
>>
>> > src/connection.h:33:21: sqlite3.h: No such file or directory
>>
>> [...]
>>
>> > Could somebody tell me what I have to do to install 'pysqlite'?
>>
>> Install SQLite, perhaps? If the pysqlite build process can't find
>> sqlite3.h then you either don't have SQLite installed, or you don't
>> have the headers for SQLite installed. I'd recommend that you check
>> your installed packages for the SQLite libraries (eg. libsqlite3-0 on
>> Ubuntu) and/or the user interface (eg. sqlite3) and for the
>> development package (eg. libsqlite3-dev).
>>
>> If you can't install the packages, install SQLite from source
>> (seehttp://www.sqlite.org/) and try and persuade pysqlite to use your own
>> SQLite installation - there's a setup.cfg file in the pysqlite
>> distribution which may need to be changed to achieve this, but I don't
>> know how that interacts with setuptools.
>>
>> Paul
> 
> Thank for your reaction. I don't know also how the interaction sith
> 'easy_install' is. I think that I have to install 'pysqlite' from
> source code also, because i can change ther the 'setup.cfg' file and I
> can give there where the 'libsqlie3' is.

I think you are ok with easyinstall here. But as Paul said - you need the
sqlite3-headers. Usually, these are in a package called sqlite3-dev or
something.

However, if you happen to have a decent distribution (read: debian-based),
you should be able to install pysqlite2 as a package itself - no need to
easy_install it.


Diez
 




More information about the Python-list mailing list