简体   繁体   English

哪个版本的sqlite3?

[英]which version of sqlite3?

Environment - OS windows 10 version 1803.环境 - 操作系统 Windows 10 版本 1803。

python --version
Python 3.7.1  
(anaconda 3)

just downloaded 64-bit DLL (x64) for SQLite version 3.27.2 https://www.sqlite.org/2019/sqlite-dll-win32-x86-3270200.zip刚刚为 SQLite 3.27.2 版下载了 64 位 DLL (x64) https://www.sqlite.org/2019/sqlite-dll-win32-x86-3270200.zip

have set my path to refer to the 64 bit version above.已将我的路径设置为引用上面的 64 位版本。 went through and deleted other versions and verified which version of sqlite3 is being loaded within python by adding, checking python loads, deleting - checking python fails to load, then re-instating.经历并删除了其他版本,并通过添加、检查python加载、删除-检查python无法加载,然后重新安装来验证python中正在加载哪个版本的sqlite3。

in python在蟒蛇

print(sqlite3.sqlite_version_info)
(3, 27, 2)
>>> print(sqlite3.sqlite_version)
3.27.2
>>> print(sqlite3.version)
2.6.0
>>> print(sqlite3.version_info)
(2, 6, 0)

It's weird that two of the options above return version number matching the version downloaded, while two options refer to a superceded version.奇怪的是,上面的两个选项返回的版本号与下载的版本匹配,而两个选项指的是被取代的版本。

I had a quick look here https://www.sqlite.org/changes.html我在这里快速浏览了一下https://www.sqlite.org/changes.html

as I suspected my version of sqlite3 might include an older version if used with python 2.7.x series.因为我怀疑如果与 python 2.7.x 系列一起使用,我的 sqlite3 版本可能包含旧版本。 No obvious explanation to me.对我没有明显的解释。

ideas?想法?

sqlite3.sqlite_version is the version of SQLite. sqlite3.sqlite_version 是 SQLite 的版本。

sqlite3.version is the version of the python binding to SQLite. sqlite3.version 是 python 绑定到 SQLite 的版本。

turned out I had some weird path issues going on.结果我遇到了一些奇怪的路径问题。 Missed updating this question when I resolved the problem and now I can't remember exactly how to demo the problem.错过了更新这个问题,当我解决了这个问题,现在我不记得究竟如何演示的问题。

check your paths!检查你的路径! particularly when using virtual machines and windows cmd & ubuntu shell.特别是在使用虚拟机和 windows cmd & ubuntu shell 时。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM