[Python] Error installing psycopg2/psycopg2-binary on MacOS 15.3

Discussão em 'Python' iniciado por Stack, Março 27, 2025.

  1. Stack

    Stack Membro Participativo

    I have problem with installing psycopg2 library.

    ld: warning: directory not found for option '-L/opt/homebrew/opt/openssl@**{YOUR_OPENSSL_VERSION}**/lib'
    ld: warning: directory not found for option '-L/Users/petrtarasov/.pyenv/versions/**{YOUR_PYTHON_VERSION}**/lib'
    ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/lib/libSystem.tbd' for architecture arm64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    error: command '/opt/homebrew/opt/llvm/bin/clang' failed with exit code 1
    [end of output]

    note: This error originates from a subprocess, and is likely not a problem with pip.
    ERROR: Failed building wheel for psycopg2-binary
    Running setup.py clean for psycopg2-binary
    Failed to build psycopg2-binary
    ERROR: Failed to build installable wheels for some pyproject.toml based projects (psycopg2-binary)


    I know that there are a lot of same questions on stack overflow, but none of the presented solutions there helped me.

    I have installed postgresql@15, openssl, set all the flags, but I still get this error.

    Please help me

    Continue reading...

Compartilhe esta Página