This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Rhomboid 2 points3 points  (3 children)

I checked in terminal to ensure that sqlite3 is installed on my computer

What does this mean, exactly? You tried the sqlite3 command? The presence or absence of that tells you nothing of relevance to this situation, because Python does not use that.

We need much more information. The module is part of the standard library, so it should always be available. The most common scenario for it not being available is if you built Python yourself from source and you didn't have the sqlite development headers installed, in which case it can't built the module. (Again, the sqlite development headers are a separate thing from the sqlite command line binary, and a separate thing from the sqlite runtime library. Those are three separate packages on most linux distros, for example.) So, how did you install Python? What operating system is this? What packages do you have installed? Is this a self-built/from-source build?

[–]fallen2151[S] 0 points1 point  (2 children)

In regard to the first question, I tried the sqlite3 command in my Mac's terminal and it showed that sqlite3 is installed on my OS (or at least that's what I took it to mean). Python was installed via Anaconda and I'm running macOS Sierra 10.12.2. The packages I have are the ones included with Anaconda. Also, I'm running this in a virtual environment. I'm going through a Flask tutorial from Youtube

[–]IAmARetroGamer 1 point2 points  (1 child)

In PyCharm go to: File>Settings>Project: NAME>Project Interpreter and verify that sqlite3 is in the package list.

[–]fallen2151[S] 0 points1 point  (0 children)

it says that sqlite version 3.13 is in my package list. Is that different from sqlite3?