Setup - PostgresML #541
Replies: 4 comments 4 replies
-
Two things. First, running the installation commands as shown with WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv Is it necessary to use Second, and more important, after following the instructions to the letter, I get this error when trying to use transformers. psql (14.6 (Ubuntu 14.6-0ubuntu0.22.04.1))
Type "help" for help.
postgres=# SELECT pgml.transform(
'translation_en_to_fr',
inputs => ARRAY[
'Welcome to the future!',
'Where have you been all this time?'
]
) AS french;
ERROR: called `Result::unwrap()` on an `Err` value: PyErr { type: <class 'ModuleNotFoundError'>, value: ModuleNotFoundError("No module named 'transformers'"), traceback: Some(<traceback object at 0x7fbaea7dc700>) }
CONTEXT: src/bindings/transformers.rs:19:62 This is for postgresql-14 and pgml-14 on Ubuntu 22. |
Beta Was this translation helpful? Give feedback.
-
There may be ways we could get around this by using individual package managers (e.g. apt on debian/ubuntu) to install Python dependencies system wide, but we'd need documentation for every distribution and OS. I think a better path forward would be to sandbox the Postgres plPython dependencies (or at least just our own) using a virtualenv for py03.
|
Beta Was this translation helpful? Give feedback.
-
Hello, would you please provide guidance on how to install postgresML extension on CentOS ? Many thanks ! |
Beta Was this translation helpful? Give feedback.
-
Hi @ahmedrachid, we don't maintain a CentOS package, although you can convert the |
Beta Was this translation helpful? Give feedback.
-
Setup - PostgresML
Train and deploy models to make online predictions using only SQL, with an open source Postgres extension.
https://postgresml.org/user_guides/transformers/setup/
Beta Was this translation helpful? Give feedback.
All reactions