Replies: 4 comments 1 reply
-
Of course rye and uv prefer using binary wheels if they are available. There could be several reasons they are not - a wheel is probably not available for the chosen python version and platform. Sometimes a python version that is more contemporary with the package's release is better (is there a wheel for Python 3.11 rather than 3.12, things like that?) In this case it falls back to build from source. Failure to build due to the bug #646 I think. One workaround could be something as simple as installing clang or gcc and/or retrying with CC=gcc set (so that it picks a different compiler, since clang was missing according to the error message.) This workaround doesn't always work. |
Beta Was this translation helpful? Give feedback.
-
I'm running into the same issue. I get this error for both trying to add psycopg2 or psycopg2-binary: error: Failed to prepare distributions |
Beta Was this translation helpful? Give feedback.
-
☝️ Ran into the same issue for both psycopg2 and psycopg2-binary. For me the install attempt failed with
Installed clang with The next attempt failed with a slightly different output:
Apparently After installing these two dependencies I was finally able to add psycopg2 successfully 🎉 I hope this helps 🙂 Remember to swap |
Beta Was this translation helpful? Give feedback.
-
I ran into this error with |
Beta Was this translation helpful? Give feedback.
-
I tried to add the
psycopg2
binary and it failed trying to build the source. My expectation is that it would install the pre-compiled library.Beta Was this translation helpful? Give feedback.
All reactions