I try to install psycopg2-binary 2.7.7 on my MacOs (Sonoma 14.5), but I encountered some errors on the build
<code> error: command '/usr/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
Running setup.py clean for psycopg2
Failed to build psycopg2
ERROR: Could not build wheels for psycopg2, which is required to install pyproject.toml-based projects
</code>
<code> error: command '/usr/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
Running setup.py clean for psycopg2
Failed to build psycopg2
ERROR: Could not build wheels for psycopg2, which is required to install pyproject.toml-based projects
</code>
error: command '/usr/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
Running setup.py clean for psycopg2
Failed to build psycopg2
ERROR: Could not build wheels for psycopg2, which is required to install pyproject.toml-based projects
I tried to update to psycopg2-binary to 2.9 but I have another error
<code>AssertionError: database connection isn't set to UTC
</code>
<code>AssertionError: database connection isn't set to UTC
</code>
AssertionError: database connection isn't set to UTC
So, I may need to use the current project version with psycopg2-binary 2.7.7.
Here’s what I’ve done so far:
<code>xcode-select --install
</code>
<code>xcode-select --install
</code>
xcode-select --install
I follow an answer in another question but it didn’t work for me :/
/a/39244687/20561293
and another method was
<code>brew install openssl
brew --prefix openssl
LDFLAGS="-I/opt/homebrew/opt/openssl@3/include -L/opt/homebrew/opt/openssl@3/lib" pip install psycopg2
</code>
<code>brew install openssl
brew --prefix openssl
LDFLAGS="-I/opt/homebrew/opt/openssl@3/include -L/opt/homebrew/opt/openssl@3/lib" pip install psycopg2
</code>
brew install openssl
brew --prefix openssl
LDFLAGS="-I/opt/homebrew/opt/openssl@3/include -L/opt/homebrew/opt/openssl@3/lib" pip install psycopg2
here /a/66684138/20561293
This method didn’t work for me either (openssl@3)
If anyone have an idea 😕