From your comments, your problem is that your pre-installed sqlite 3.7 is higher in your path than your third-party 3.8. This means that when you create pysqlite2 , by default it will find and use this 3.7, so it wonβt do you any good. And you probably don't want to change all the way to handle this.
But itβs fine if at the start of the build phase 3.8 is found, it doesnβt matter what comes first at runtime; the path to 3.8 will be baked into the module. There are several ways to do this, but the simplest:
$ brew install sqlite3 $ sudo -s
The LDFLAGS and CPPFLAGS came from the output of the brew install sqlite3 . If you installed sqlite3 any other way, you need to get the appropriate values ββ- perhaps /usr/local/lib and /usr/local/include , but if not, search for libsqlite3.dylib and sqlite3.h .
Please note that if you follow these steps, you will get a low-fat version of libsqlite3 , which means that pysqlite2 will not work in 32-bit mode. I doubt the problem is for you, but if so, you can simply install it --universal or use a different installer instead of Homebrew.
source share