'sqlite3.h': No such file or directory

4.3k views Asked by At

I am attempting to install the pysqlite module for Python 2.7 on my Windows 10 computer. I issued the following command:

pip install pysqlite

The installation ran as usual until it hit an error:

c:\users\xaresys\appdata\local\temp\pip-build-xleoab\pysqlite\src\connection.h(33) : fatal error C1083: Cannot open include file: 'sqlite3.h': No such file or directory error: command 'C:\Users\xaresys\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\cl.exe' failed with exit status 2

I also tried to install a similar module, pysqlcipher, which hit the same error. Do I need to install anything before installing this? Thanks.

1

There are 1 answers

1
usernamenotfound On

Looks like you are missing Visual C++ binaries which are required to install some packages. Follow instructions here: https://github.com/develersrl/gccwinbinaries