I’m reviewing the Python with Databases article and am having a little trouble getting started with SQLite on my local machine.
I am utilizing Python inside of an Anaconda Powershell Prompt. There are no issues when I run the basic line “import sqlite3” but when I try to create a table as suggested in the article I run into an operational error. It reads as follows:
conn = sqlite3.connect(“first.db”)
Traceback (most recent call last):
File “”, line 1, in
sqlite3.OperationalError: unable to open database file
As a result I’m not able to utilize any of the other options noted in the article. Any suggestions on how to get this going? Thanks!