Python & SQLite

P

Pajo

What should I install so I can connect to sqlite from
Python.
One simple example would be very helpfull.


Thanks,

Pajo
 
S

Swaroop C H

What should I install so I can connect to sqlite from
Python.
One simple example would be very helpfull.

You haven't mentioned which operating system you are using.

For Windows, PySQLite binaries are available at
http://initd.org/tracker/pysqlite
For Linux/BSD, use your favorite package management software (yum in
Fedora, urpmi in Mandrake, emerge in Gentoo, apt-get in Debian,
pkg_add in FreeBSD), etc.
For Mac, use Fink.

HTH :)
 
A

Andy Jeffries

dcrespo said:
Does PySQLite run on Linux?

Yes!

From my Gentoo laptop:

andyvaio root # emerge -av pysqlite

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild R ] dev-python/pysqlite-0.5.1 0 kB

Total size of downloads: 0 kB

Do you want me to merge these packages? [Yes/No]



Cheers,


Andy
 
D

dcrespo

There are specific python modules for SQLite on Linux.

Which? I thought pysqlite works on Linux.

My important question is: If I develop an app using
Python-wxPython-PySQLite under Windows, and run it on Linux, it should
work, ¿right?

Daniel
 
?

=?ISO-8859-1?Q?Gerhard_H=E4ring?=

dcrespo said:
Which? I thought pysqlite works on Linux.

Sure. What he probably meant was that there are binary installers for
pysqlite from various Linux distributions (Debian, Gentoo, ...).
My important question is: If I develop an app using
Python-wxPython-PySQLite under Windows, and run it on Linux, it should
work, ¿right?

Correct for Python and pysqlite. For wxPython you will often have to do
fine-tuning because some bugs are only present on Windows, and some bugs
are only present on *nix. And things sometimes look slightly different.

-- Gerhard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
474,238
Messages
2,571,194
Members
47,829
Latest member
Jesus_Freak

Latest Threads

Top