V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
imn1
V2EX  ›  Python

迫于官方 sqlite 版本低, Linux 下有没有兼容官方语法、sqlite 版本高些的 pypi?

  •  
  •   imn1 · 2020-05-10 13:36:09 +08:00 · 2422 次点击
    这是一个创建于 1445 天前的主题,其中的信息可能已经有所发展或是发生改变。
    需要使用>=3.24 的 SQL UPSERT 语法
    语法相同,原来写的代码不用推倒

    windows 好解决,下个 dll 替换官方就行,linux 搜过升级官方 sqlite 版本要编译……非必要不想弄个浩大工程
    6 条回复    2020-05-10 21:51:10 +08:00
    zachlhb
        1
    zachlhb  
       2020-05-10 13:53:05 +08:00 via Android   ❤️ 2
    你什么 Linux 版本,我 Debian10 是 3.27 版本的啊
    skinny
        2
    skinny  
       2020-05-10 16:18:26 +08:00   ❤️ 1
    apsw
    imn1
        3
    imn1  
    OP
       2020-05-10 16:26:43 +08:00
    @zachlhb
    linux 的 python sqlite3 是随系统的么?我还以为是自行预编译
    debian 是两年前装的,py3.7 是去年装的
    我查一下哈
    mason961125
        4
    mason961125  
       2020-05-10 19:50:50 +08:00 via iPhone   ❤️ 1
    编译 sqlite 是大工程……吗?
    imn1
        5
    imn1  
    OP
       2020-05-10 21:35:12 +08:00
    @mason961125
    我说的是编译 py3,我搜了一下有说 py3 里面的 sqlite 是预编译,升级要整个 py 编译,不过搜到的文章都是几年前的
    编译本身可能没什么,但牵扯到各种依赖,我是不敢动
    roundgis
        6
    roundgis  
       2020-05-10 21:51:10 +08:00   ❤️ 1
    https://github.com/ygl-rg/pypy_sqlite3

    可以用 pypy 的 sqlite3 模块,想升级 sqlite3,下载 sqlite3.c,重新编译即可
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3121 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 00:33 · PVG 08:33 · LAX 17:33 · JFK 20:33
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.