Closed xin2233 closed 7 months ago
pip install pysqlcipher3 false environmention:ubuntu2004,python3.8 this error message:
$ pip install pysqlcipher3==1.2.0 --verbose Non-user install because user site-packages disabled Created temporary directory: /tmp/pip-ephem-wheel-cache-qtc5e5np Created temporary directory: /tmp/pip-req-tracker-zvtrlii0 Initialized build tracking at /tmp/pip-req-tracker-zvtrlii0 Created build tracker: /tmp/pip-req-tracker-zvtrlii0 Entered build tracker: /tmp/pip-req-tracker-zvtrlii0 Created temporary directory: /tmp/pip-install-d11j2_nc 1 location(s) to search for versions of pysqlcipher3: * https://pypi.org/simple/pysqlcipher3/ Fetching project page and analyzing links: https://pypi.org/simple/pysqlcipher3/ Getting page https://pypi.org/simple/pysqlcipher3/ Found index url https://pypi.org/simple Looking up "https://pypi.org/simple/pysqlcipher3/" in the cache Request header has "max_age" as 0, cache bypassed Starting new HTTPS connection (1): pypi.org:443 https://pypi.org:443 "GET /simple/pysqlcipher3/ HTTP/1.1" 304 0 Found link https://files.pythonhosted.org/packages/a4/06/1d56bdec3129eff6dd54323d249784ccd90ce03c8cae7870d45e434bae77/pysqlcipher3-1.0.3.tar.gz#sha256=694e5bbb6ece8a064bd55f261e54b9ffbb3af1784afdc4dce4948a0251a8a430 (from https://pypi.org/simple/pysqlcipher3/), version: 1.0.3 Found link https://files.pythonhosted.org/packages/b1/11/05dcd8998eae4898633e6f133a4806f8893fc6c61a44795cf78d857d461b/pysqlcipher3-1.0.4.tar.gz#sha256=75d6b9d023d7ab76c841f97fd9d108d87516e281268e61518411d08cb7062663 (from https://pypi.org/simple/pysqlcipher3/), version: 1.0.4 Found link https://files.pythonhosted.org/packages/3f/ac/b31788f0b39f9b66b400ff0ed4d53469af913aff5bb04b86e66e6c09dd41/pysqlcipher3-1.1.0.tar.gz#sha256=2e8ef9fb6cb68d926b4198fdc6b26f55119698ea3c7c8e625f3114467d346371 (from https://pypi.org/simple/pysqlcipher3/) (requires-python:>=3.3), version: 1.1.0 Found link https://files.pythonhosted.org/packages/9d/eb/abc035ae8dda359dff865168dffe39d9a61f115cc6100f53276e6d4554c2/pysqlcipher3-1.2.0.tar.gz#sha256=3c8033812655947ebf29a809ac5106b2bc69be0274eaccef6b58f4580c8d06c5 (from https://pypi.org/simple/pysqlcipher3/) (requires-python:>=3.3), version: 1.2.0 Given no hashes to check 1 links for project 'pysqlcipher3': discarding no candidates Using version 1.2.0 (newest of versions: 1.2.0) Collecting pysqlcipher3==1.2.0 Created temporary directory: /tmp/pip-unpack-8ouyb34v Looking up "https://files.pythonhosted.org/packages/9d/eb/abc035ae8dda359dff865168dffe39d9a61f115cc6100f53276e6d4554c2/pysqlcipher3-1.2.0.tar.gz" in the cache Current age based on date: 1201 Ignoring unknown cache-control directive: immutable Freshness lifetime from max-age: 365000000 The response is "fresh", returning cached response 365000000 > 1201 Using cached pysqlcipher3-1.2.0.tar.gz (102 kB) Added pysqlcipher3==1.2.0 from https://files.pythonhosted.org/packages/9d/eb/abc035ae8dda359dff865168dffe39d9a61f115cc6100f53276e6d4554c2/pysqlcipher3-1.2.0.tar.gz#sha256=3c8033812655947ebf29a809ac5106b2bc69be0274eaccef6b58f4580c8d06c5 to build tracker '/tmp/pip-req-tracker-zvtrlii0' Running setup.py (path:/tmp/pip-install-d11j2_nc/pysqlcipher3/setup.py) egg_info for package pysqlcipher3 Running command python setup.py egg_info running egg_info creating /tmp/pip-install-d11j2_nc/pysqlcipher3/pip-egg-info/pysqlcipher3.egg-info writing /tmp/pip-install-d11j2_nc/pysqlcipher3/pip-egg-info/pysqlcipher3.egg-info/PKG-INFO writing dependency_links to /tmp/pip-install-d11j2_nc/pysqlcipher3/pip-egg-info/pysqlcipher3.egg-info/dependency_links.txt writing top-level names to /tmp/pip-install-d11j2_nc/pysqlcipher3/pip-egg-info/pysqlcipher3.egg-info/top_level.txt writing manifest file '/tmp/pip-install-d11j2_nc/pysqlcipher3/pip-egg-info/pysqlcipher3.egg-info/SOURCES.txt' reading manifest file '/tmp/pip-install-d11j2_nc/pysqlcipher3/pip-egg-info/pysqlcipher3.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '*~' found anywhere in distribution warning: no previously-included files matching '*.pyc' found anywhere in distribution writing manifest file '/tmp/pip-install-d11j2_nc/pysqlcipher3/pip-egg-info/pysqlcipher3.egg-info/SOURCES.txt' Source in /tmp/pip-install-d11j2_nc/pysqlcipher3 has version 1.2.0, which satisfies requirement pysqlcipher3==1.2.0 from https://files.pythonhosted.org/packages/9d/eb/abc035ae8dda359dff865168dffe39d9a61f115cc6100f53276e6d4554c2/pysqlcipher3-1.2.0.tar.gz#sha256=3c8033812655947ebf29a809ac5106b2bc69be0274eaccef6b58f4580c8d06c5 Removed pysqlcipher3==1.2.0 from https://files.pythonhosted.org/packages/9d/eb/abc035ae8dda359dff865168dffe39d9a61f115cc6100f53276e6d4554c2/pysqlcipher3-1.2.0.tar.gz#sha256=3c8033812655947ebf29a809ac5106b2bc69be0274eaccef6b58f4580c8d06c5 from build tracker '/tmp/pip-req-tracker-zvtrlii0' Building wheels for collected packages: pysqlcipher3 Created temporary directory: /tmp/pip-wheel-g5t6xtjk Building wheel for pysqlcipher3 (setup.py) ... Destination directory: /tmp/pip-wheel-g5t6xtjk Running command '/home/zjx/桌面/zxc-wechat-dump/venv/bin/python' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-d11j2_nc/pysqlcipher3/setup.py'"'"'; __file__='"'"'/tmp/pip-install-d11j2_nc/pysqlcipher3/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 /tmp/pip-wheel-g5t6xtjk running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-3.8 creating build/lib.linux-x86_64-3.8/pysqlcipher3 copying lib/__init__.py -> build/lib.linux-x86_64-3.8/pysqlcipher3 copying lib/dbapi2.py -> build/lib.linux-x86_64-3.8/pysqlcipher3 copying lib/dump.py -> build/lib.linux-x86_64-3.8/pysqlcipher3 creating build/lib.linux-x86_64-3.8/pysqlcipher3/test copying lib/test/__init__.py -> build/lib.linux-x86_64-3.8/pysqlcipher3/test creating build/lib.linux-x86_64-3.8/pysqlcipher3/test/python3 copying lib/test/python3/__init__.py -> build/lib.linux-x86_64-3.8/pysqlcipher3/test/python3 copying lib/test/python3/sqlcipher.py -> build/lib.linux-x86_64-3.8/pysqlcipher3/test/python3 copying lib/test/python3/types.py -> build/lib.linux-x86_64-3.8/pysqlcipher3/test/python3 copying lib/test/python3/transactions.py -> build/lib.linux-x86_64-3.8/pysqlcipher3/test/python3 copying lib/test/python3/regression.py -> build/lib.linux-x86_64-3.8/pysqlcipher3/test/python3 copying lib/test/python3/hooks.py -> build/lib.linux-x86_64-3.8/pysqlcipher3/test/python3 copying lib/test/python3/dbapi.py -> build/lib.linux-x86_64-3.8/pysqlcipher3/test/python3 copying lib/test/python3/factory.py -> build/lib.linux-x86_64-3.8/pysqlcipher3/test/python3 copying lib/test/python3/userfunctions.py -> build/lib.linux-x86_64-3.8/pysqlcipher3/test/python3 copying lib/test/python3/dump.py -> build/lib.linux-x86_64-3.8/pysqlcipher3/test/python3 running build_ext Builds a C extension linking against libsqlcipher library building 'pysqlcipher3._sqlite3' extension creating build/temp.linux-x86_64-3.8 creating build/temp.linux-x86_64-3.8/src creating build/temp.linux-x86_64-3.8/src/python3 x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DMODULE_NAME="pysqlcipher3.dbapi2" -I/home/zjx/桌面/zxc-wechat-dump/venv/include -I/usr/include/python3.8 -c src/python3/module.c -o build/temp.linux-x86_64-3.8/src/python3/module.o In file included from src/python3/module.c:24: src/python3/connection.h:33:10: fatal error: sqlcipher/sqlite3.h: 没有那个文件或目录 33 | #include "sqlcipher/sqlite3.h" | ^~~~~~~~~~~~~~~~~~~~~ compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 WARNING: Legacy build of wheel for 'pysqlcipher3' created no files. Command arguments: '/home/zjx/桌面/zxc-wechat-dump/venv/bin/python' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-d11j2_nc/pysqlcipher3/setup.py'"'"'; __file__='"'"'/tmp/pip-install-d11j2_nc/pysqlcipher3/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 /tmp/pip-wheel-g5t6xtjk Command output: running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-3.8 creating build/lib.linux-x86_64-3.8/pysqlcipher3 copying lib/__init__.py -> build/lib.linux-x86_64-3.8/pysqlcipher3 copying lib/dbapi2.py -> build/lib.linux-x86_64-3.8/pysqlcipher3 copying lib/dump.py -> build/lib.linux-x86_64-3.8/pysqlcipher3 creating build/lib.linux-x86_64-3.8/pysqlcipher3/test copying lib/test/__init__.py -> build/lib.linux-x86_64-3.8/pysqlcipher3/test creating build/lib.linux-x86_64-3.8/pysqlcipher3/test/python3 copying lib/test/python3/__init__.py -> build/lib.linux-x86_64-3.8/pysqlcipher3/test/python3 copying lib/test/python3/sqlcipher.py -> build/lib.linux-x86_64-3.8/pysqlcipher3/test/python3 copying lib/test/python3/types.py -> build/lib.linux-x86_64-3.8/pysqlcipher3/test/python3 copying lib/test/python3/transactions.py -> build/lib.linux-x86_64-3.8/pysqlcipher3/test/python3 copying lib/test/python3/regression.py -> build/lib.linux-x86_64-3.8/pysqlcipher3/test/python3 copying lib/test/python3/hooks.py -> build/lib.linux-x86_64-3.8/pysqlcipher3/test/python3 copying lib/test/python3/dbapi.py -> build/lib.linux-x86_64-3.8/pysqlcipher3/test/python3 copying lib/test/python3/factory.py -> build/lib.linux-x86_64-3.8/pysqlcipher3/test/python3 copying lib/test/python3/userfunctions.py -> build/lib.linux-x86_64-3.8/pysqlcipher3/test/python3 copying lib/test/python3/dump.py -> build/lib.linux-x86_64-3.8/pysqlcipher3/test/python3 running build_ext Builds a C extension linking against libsqlcipher library building 'pysqlcipher3._sqlite3' extension creating build/temp.linux-x86_64-3.8 creating build/temp.linux-x86_64-3.8/src creating build/temp.linux-x86_64-3.8/src/python3 x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DMODULE_NAME="pysqlcipher3.dbapi2" -I/home/zjx/桌面/zxc-wechat-dump/venv/include -I/usr/include/python3.8 -c src/python3/module.c -o build/temp.linux-x86_64-3.8/src/python3/module.o In file included from src/python3/module.c:24: src/python3/connection.h:33:10: fatal error: sqlcipher/sqlite3.h: 没有那个文件或目录 33 | #include "sqlcipher/sqlite3.h" | ^~~~~~~~~~~~~~~~~~~~~ compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 ---------------------------------------- done Running setup.py clean for pysqlcipher3 Running command '/home/zjx/桌面/zxc-wechat-dump/venv/bin/python' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-d11j2_nc/pysqlcipher3/setup.py'"'"'; __file__='"'"'/tmp/pip-install-d11j2_nc/pysqlcipher3/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' clean --all running clean removing 'build/temp.linux-x86_64-3.8' (and everything under it) removing 'build/lib.linux-x86_64-3.8' (and everything under it) 'build/bdist.linux-x86_64' does not exist -- can't clean it 'build/scripts-3.8' does not exist -- can't clean it removing 'build' Failed to build pysqlcipher3 Installing collected packages: pysqlcipher3 Created temporary directory: /tmp/pip-record-c6x6zirw Running command '/home/zjx/桌面/zxc-wechat-dump/venv/bin/python' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-d11j2_nc/pysqlcipher3/setup.py'"'"'; __file__='"'"'/tmp/pip-install-d11j2_nc/pysqlcipher3/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-c6x6zirw/install-record.txt --single-version-externally-managed --compile --install-headers '/home/zjx/桌面/zxc-wechat-dump/venv/include/site/python3.8/pysqlcipher3' running install running build running build_py creating build creating build/lib.linux-x86_64-3.8 creating build/lib.linux-x86_64-3.8/pysqlcipher3 copying lib/__init__.py -> build/lib.linux-x86_64-3.8/pysqlcipher3 copying lib/dbapi2.py -> build/lib.linux-x86_64-3.8/pysqlcipher3 copying lib/dump.py -> build/lib.linux-x86_64-3.8/pysqlcipher3 creating build/lib.linux-x86_64-3.8/pysqlcipher3/test copying lib/test/__init__.py -> build/lib.linux-x86_64-3.8/pysqlcipher3/test creating build/lib.linux-x86_64-3.8/pysqlcipher3/test/python3 copying lib/test/python3/__init__.py -> build/lib.linux-x86_64-3.8/pysqlcipher3/test/python3 copying lib/test/python3/sqlcipher.py -> build/lib.linux-x86_64-3.8/pysqlcipher3/test/python3 copying lib/test/python3/types.py -> build/lib.linux-x86_64-3.8/pysqlcipher3/test/python3 copying lib/test/python3/transactions.py -> build/lib.linux-x86_64-3.8/pysqlcipher3/test/python3 copying lib/test/python3/regression.py -> build/lib.linux-x86_64-3.8/pysqlcipher3/test/python3 copying lib/test/python3/hooks.py -> build/lib.linux-x86_64-3.8/pysqlcipher3/test/python3 copying lib/test/python3/dbapi.py -> build/lib.linux-x86_64-3.8/pysqlcipher3/test/python3 copying lib/test/python3/factory.py -> build/lib.linux-x86_64-3.8/pysqlcipher3/test/python3 copying lib/test/python3/userfunctions.py -> build/lib.linux-x86_64-3.8/pysqlcipher3/test/python3 copying lib/test/python3/dump.py -> build/lib.linux-x86_64-3.8/pysqlcipher3/test/python3 running build_ext Builds a C extension linking against libsqlcipher library building 'pysqlcipher3._sqlite3' extension creating build/temp.linux-x86_64-3.8 creating build/temp.linux-x86_64-3.8/src creating build/temp.linux-x86_64-3.8/src/python3 x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DMODULE_NAME="pysqlcipher3.dbapi2" -I/home/zjx/桌面/zxc-wechat-dump/venv/include -I/usr/include/python3.8 -c src/python3/module.c -o build/temp.linux-x86_64-3.8/src/python3/module.o In file included from src/python3/module.c:24: src/python3/connection.h:33:10: fatal error: sqlcipher/sqlite3.h: 没有那个文件或目录 33 | #include "sqlcipher/sqlite3.h" | ^~~~~~~~~~~~~~~~~~~~~ compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 Running setup.py install for pysqlcipher3 ... done Record file /tmp/pip-record-c6x6zirw/install-record.txt not found Successfully installed pysqlcipher3 Cleaning up... Removing source in /tmp/pip-install-d11j2_nc/pysqlcipher3 Removed build tracker: '/tmp/pip-req-tracker-zvtrlii0'
I have installed libsqlite3-dev,sqlite3. please help me.
you need libsqlcipher-dev
prefer installing it via the release here https://github.com/sqlcipher/sqlcipher/releases then running make and make install
thanks, bro
pip install pysqlcipher3 false environmention:ubuntu2004,python3.8 this error message:
I have installed libsqlite3-dev,sqlite3. please help me.