2017-05-26 231 views
0

我试图在我的Windows 10计算机上安装pysqlite模块Python 2.7。我发出以下命令:'sqlite3.h':没有这样的文件或目录

pip install pysqlite 

安装运行如常,直到它击中了一个错误:

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

我也试图安装一个类似的模块,pysqlcipher,击中了同样的错误。在安装之前需要安装什么吗?谢谢。

+0

你是否已经安装了sqlite3库本身?如果是这样,你是从源代码安装还是使用二进制安装程序安装?您需要sqlite3库的源代码(开发)版本。 – Evert

+1

根据您的机器安装Python的方式,您可以简单地使用内置的'sqlite3'模块。 – Evert

+0

我以前没有在我的电脑上安装过任何与sqlite3相关的文件。有没有一种特定的方式,我必须安装sqlite3与pysqlcipher一起使用? – xaresys

回答

相关问题