2017-05-26 69 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

回答

相關問題