如何在Ubuntu上的Pycharm中更新SQLite3版本?
我有一个完全更新的Pycharm编辑器(版本Pycharm 2022.1.2)。
我患有SQL查询(SQLITE3),该查询不支持SQLite版本3.33,而Pycharm似乎仅具有3.31版。
我尽力升级它,而我的Ubuntu 20.04拥有SQLite3(3.38)的最新版本,但仍然,Pycharm不在乎它,它仍然使用我不知道在哪里的旧3.31。
那么,如何在Pycharm中将SQLite更新为更理智的版本?
Pycharm使用SQLalchemy来操纵数据库,它是最新版本(1.4.37),但它仍然使用SQLite版本3.31。
项目解释器是Venv'd Python3.8。
I have a fully updated PyCharm editor (version PyCharm 2022.1.2).
I'm suffering from an SQL query (SQLite3), which is not supported below SQLite version 3.33, and PyCharm seems having version 3.31 only.
I tried my best to upgrade it, and my Ubuntu 20.04 has the most updated version of sqlite3 (3.38), but still, PyCharm doesn't care about it and it still uses the old 3.31 from I have no idea where.
So, how can I update SQLite to a more sane version in PyCharm?
PyCharm uses SQLAlchemy to manipulate the databases, and it is in the latest version (1.4.37), but it still uses SQLite version 3.31.
Project interpreter is a venv'd Python3.8.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
简单地安装了最新版本的sqlite(例如,来自在这里)不足以获得Python在Ubuntu上认识它。
如相关问题,我们需要添加
/usr/usr/local/lib
ld_library_path
环境变量:如果您不想将全局更改为
ld_library_path
您可以将其添加到Pycharm Run配置中:Simply having the latest version of SQLite installed (e.g., from here) is not enough to get Python on Ubuntu to recognize it.
As mentioned in the related question, we need to add
/usr/local/lib
to theLD_LIBRARY_PATH
environment variable:If you don't want to make a global change to
LD_LIBRARY_PATH
you can add it to your PyCharm run configuration: