Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

不能使用 PostgreSQL 提示 Postgres driver not installed! #86

Open
eallion opened this issue Feb 2, 2024 · 5 comments
Open

不能使用 PostgreSQL 提示 Postgres driver not installed! #86

eallion opened this issue Feb 2, 2024 · 5 comments

Comments

@eallion
Copy link

eallion commented Feb 2, 2024

No description provided.

@mouday
Copy link
Owner

mouday commented Feb 2, 2024

需要安装依赖 psycopg2

@eallion
Copy link
Author

eallion commented Feb 3, 2024

喔,忘了说,是 Docker 容器。
(PS:我自己的解决了,但是看了下不好提 PR,就来反馈一下)

@mouday
Copy link
Owner

mouday commented Feb 3, 2024

真棒,要到容器内部安装一下,用的人少,所以没有特别关注

@mouday
Copy link
Owner

mouday commented Feb 4, 2024

你怎么处理的,可以分享下吗,我没用过pg

@eallion
Copy link
Author

eallion commented Feb 4, 2024

就是编译 Docker 镜像的时候 pip install psycopg2。如果方便的话,也可以参考 Umami 构建不同的 db_type tag 来区分不同的数据库,这样镜像体积可能也会小一些。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants