psycopg / psycopg2

PostgreSQL database adapter for the Python programming language
https://www.psycopg.org/
Other
3.31k stars 503 forks source link

ERROR: Failed building wheel for psycopg2 #1701

Closed AlphaMAtrix69 closed 3 months ago

AlphaMAtrix69 commented 3 months ago

This is a bug tracker If you have a question, such has "how do you do X with Python/PostgreSQL/psycopg2" please write to the mailing list or open a question instead.

Before opening this ticket, please confirm that:

Please complete the following information:

Here is the error I am getting while installing psycopg2 with the pip install psycopg2 cmd

Creating library build\temp.win-amd64-cpython-313\Release\psycopg_psycopg.cp313-win_amd64.lib and object build\temp.win-amd64-cpython-313\Release\psycopg_psycopg.cp313-win_amd64.exp utils.obj : error LNK2001: unresolved external symbol _PyInterpreterState_Get build\lib.win-amd64-cpython-313\psycopg2_psycopg.cp313-win_amd64.pyd : fatal error LNK1120: 1 unresolved externals error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\link.exe' failed with exit code 1120 [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

dvarrazzo commented 3 months ago

Python 3.13 is not supported yet.

Duplicate of #1692.