[Tutor] Python 3.x and Sqlite3

Zachary Ware zachary.ware+pytut at gmail.com
Wed Oct 12 00:05:27 EDT 2016


Hi Greg,

On Tue, Oct 11, 2016 at 3:54 PM, Greg Schmit <schmitgreg at gmail.com> wrote:
> On FreeBSD I built lang/python34 from source and when I run python 3.4 I cannot import sqlite3. I thought it was being packaged with python 3.4. Am I incorrect in this assumption?

This is more the kind of fare that python-list is good for; this list
is more for learning how to use Python.

In any case, you'll need to make sure you have sqlite3 and its headers
installed before building Python.  At the end of the 'make' step, you
probably got a message saying "The necessary bits to build these
optional modules were not found:" with _sqlite3 listed underneath it.
There may also be other useful modules listed there that you may want
to install the dependencies for, such as readline or _ssl.

Hope this helps,
-- 
Zach


More information about the Tutor mailing list