安装label-studio-ml 1.0.9报错:Error: pg_config executable not found.

OS: Rocky Linux 9

1
2
3
4
5
6
7
8
9
pip install label-studio-ml==1.0.9
....
writing top-level names to psycopg2.egg-info/top_level.txt

Error: pg_config executable not found.

pg_config is required to build psycopg2 from source. Please add the directory
containing pg_config to the $PATH or specify the full executable path with the
....
  • 解决方法
    1
    2
    3
    4
    dnf install libpq-devel
    pip install label-studio-ml==1.0.9
    # Ubuntu系 使用以下命令
    apt-get install libpq-dev