我整夜都在努力解决这个问题。
我只想下载pysqlcipher,但一直出错。
我尝试在线查找解决方案,但没有一个对我有用。
是的,我已经为python 2.7安装了C ++编译器。
如果可以逐步向我解释,谢谢。
这是整个错误代码。
C:\Users\acces>pip install pysqlcipher
Collecting pysqlcipher
Using cached https://files.pythonhosted.org/packages/65/1b/f344acad06da78039ad63716e4af0286fea0be1e57da7265dba268079e36/pysqlcipher-2.6.10.tar.gz
Building wheels for collected packages: pysqlcipher
Running setup.py bdist_wheel for pysqlcipher ... error
Complete output from command c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\acces\\appdata\\local\\temp\\pip-install-9xvpnl\\pysqlcipher\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d c:\users\acces\appdata\local\temp\pip-wheel-rfnyxc --python-tag cp27:
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-2.7
creating build\lib.win-amd64-2.7\pysqlcipher
copying lib\dbapi2.py -> build\lib.win-amd64-2.7\pysqlcipher
copying lib\dump.py -> build\lib.win-amd64-2.7\pysqlcipher
copying lib\__init__.py -> build\lib.win-amd64-2.7\pysqlcipher
creating build\lib.win-amd64-2.7\pysqlcipher\test
copying lib\test\dbapi.py -> build\lib.win-amd64-2.7\pysqlcipher\test
copying lib\test\dump.py -> build\lib.win-amd64-2.7\pysqlcipher\test
copying lib\test\factory.py -> build\lib.win-amd64-2.7\pysqlcipher\test
copying lib\test\hooks.py -> build\lib.win-amd64-2.7\pysqlcipher\test
copying lib\test\regression.py -> build\lib.win-amd64-2.7\pysqlcipher\test
copying lib\test\transactions.py -> build\lib.win-amd64-2.7\pysqlcipher\test
copying lib\test\types.py -> build\lib.win-amd64-2.7\pysqlcipher\test
copying lib\test\userfunctions.py -> build\lib.win-amd64-2.7\pysqlcipher\test
copying lib\test\__init__.py -> build\lib.win-amd64-2.7\pysqlcipher\test
creating build\lib.win-amd64-2.7\pysqlcipher\test\py25
copying lib\test\py25\py25tests.py -> build\lib.win-amd64-2.7\pysqlcipher\test\py25
copying lib\test\py25\__init__.py -> build\lib.win-amd64-2.7\pysqlcipher\test\py25
running build_ext
building 'pysqlcipher._sqlite' extension
creating build\temp.win-amd64-2.7
creating build\temp.win-amd64-2.7\Release
creating build\temp.win-amd64-2.7\Release\src
C:\Users\acces\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DMODULE_NAME=\"pysqlcipher.dbapi2\" -Ic:\python27\include -Ic:\python27\PC /Tcsrc/module.c /Fobuild\temp.win-amd64-2.7\Release\src/module.obj -I/usr/include/sqlcipher/
module.c
c:\users\acces\appdata\local\temp\pip-install-9xvpnl\pysqlcipher\src\connection.h(33) : fatal error C1083: Cannot open include file: 'sqlite3.h': No such file or directory
error: command 'C:\\Users\\acces\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\cl.exe' failed with exit status 2
----------------------------------------
Failed building wheel for pysqlcipher
Running setup.py clean for pysqlcipher
Failed to build pysqlcipher
Installing collected packages: pysqlcipher
Running setup.py install for pysqlcipher ... error
Complete output from command c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\acces\\appdata\\local\\temp\\pip-install-9xvpnl\\pysqlcipher\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:\users\acces\appdata\local\temp\pip-record-wz9xed\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib.win-amd64-2.7
creating build\lib.win-amd64-2.7\pysqlcipher
copying lib\dbapi2.py -> build\lib.win-amd64-2.7\pysqlcipher
copying lib\dump.py -> build\lib.win-amd64-2.7\pysqlcipher
copying lib\__init__.py -> build\lib.win-amd64-2.7\pysqlcipher
creating build\lib.win-amd64-2.7\pysqlcipher\test
copying lib\test\dbapi.py -> build\lib.win-amd64-2.7\pysqlcipher\test
copying lib\test\dump.py -> build\lib.win-amd64-2.7\pysqlcipher\test
copying lib\test\factory.py -> build\lib.win-amd64-2.7\pysqlcipher\test
copying lib\test\hooks.py -> build\lib.win-amd64-2.7\pysqlcipher\test
copying lib\test\regression.py -> build\lib.win-amd64-2.7\pysqlcipher\test
copying lib\test\transactions.py -> build\lib.win-amd64-2.7\pysqlcipher\test
copying lib\test\types.py -> build\lib.win-amd64-2.7\pysqlcipher\test
copying lib\test\userfunctions.py -> build\lib.win-amd64-2.7\pysqlcipher\test
copying lib\test\__init__.py -> build\lib.win-amd64-2.7\pysqlcipher\test
creating build\lib.win-amd64-2.7\pysqlcipher\test\py25
copying lib\test\py25\py25tests.py -> build\lib.win-amd64-2.7\pysqlcipher\test\py25
copying lib\test\py25\__init__.py -> build\lib.win-amd64-2.7\pysqlcipher\test\py25
running build_ext
building 'pysqlcipher._sqlite' extension
creating build\temp.win-amd64-2.7
creating build\temp.win-amd64-2.7\Release
creating build\temp.win-amd64-2.7\Release\src
C:\Users\acces\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DMODULE_NAME=\"pysqlcipher.dbapi2\" -Ic:\python27\include -Ic:\python27\PC /Tcsrc/module.c /Fobuild\temp.win-amd64-2.7\Release\src/module.obj -I/usr/include/sqlcipher/
module.c
c:\users\acces\appdata\local\temp\pip-install-9xvpnl\pysqlcipher\src\connection.h(33) : fatal error C1083: Cannot open include file: 'sqlite3.h': No such file or directory
error: command 'C:\\Users\\acces\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\cl.exe' failed with exit status 2
----------------------------------------
Command "c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\acces\\appdata\\local\\temp\\pip-install-9xvpnl\\pysqlcipher\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:\users\acces\appdata\local\temp\pip-record-wz9xed\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\acces\appdata\local\temp\pip-install-9xvpnl\pysqlcipher\