Good day.
I am having trouble compiling pysqlite on windows. I have managed to start compiling with quite a bit of work but now I am stuck with this error:
d:/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../../mingw32/bin/ld.exe: cannot find -lsqlite3
I have searched for possible solutions but most of the solutions are for linux.
Please help.
Thank you.
when compiling
pysqlite2from source, you need to edit the filesetup.cfgwhich by default should look like:You’ll need to uncomment
include_dirsandlibrary_dirs(remove the#) an make sureinclude_dirspoints to the directory with the sqlite3 headers, andlibrary_dirsto wheresqlite3.dllcan be found.Now you should be able to compile and install pysqlite2. After that, you should put
sqlite3.dllsomwhere it can be found (either somewhere on thePATH, or intoPython27\Lib\site-packages\pysqlite2)