Using cached psycopg2-binary-2.9.10.tar.gz (385 kB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: psycopg2-binary
Building wheel for psycopg2-binary (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [32 lines of output]
running bdist_wheel
running build
running build_py
creating buildlib.win-amd64-cpython-313psycopg2
copying liberrorcodes.py -> buildlib.win-amd64-cpython-313psycopg2
copying liberrors.py -> buildlib.win-amd64-cpython-313psycopg2
copying libextensions.py -> buildlib.win-amd64-cpython-313psycopg2
copying libextras.py -> buildlib.win-amd64-cpython-313psycopg2
copying libpool.py -> buildlib.win-amd64-cpython-313psycopg2
copying libsql.py -> buildlib.win-amd64-cpython-313psycopg2
copying libtz.py -> buildlib.win-amd64-cpython-313psycopg2
copying lib_ipaddress.py -> buildlib.win-amd64-cpython-313psycopg2
copying lib_json.py -> buildlib.win-amd64-cpython-313psycopg2
copying lib_range.py -> buildlib.win-amd64-cpython-313psycopg2
copying lib__init__.py -> buildlib.win-amd64-cpython-313psycopg2
running build_ext
building 'psycopg2._psycopg' extension
creating buildtemp.win-amd64-cpython-313Releasepsycopg
"C:Program Files (x86)Microsoft Visual Studio2022BuildToolsVCToolsMSVC14.42.34433binHostX86x64cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD "-DPSYCOPG_VERSION=2.9.10 (dt dec pq3 ext lo64)" -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=170002 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -IC:Usershellomemesitemyenvinclude "-IC:Program FilesPython313include" "-IC:Program FilesPython313Include" -I. -IC:/PROGRA~1/POSTGR~1/17/include -IC:/PROGRA~1/POSTGR~1/17/include/server "-IC:Program Files (x86)Microsoft Visual Studio2022BuildToolsVCToolsMSVC14.42.34433include" "-IC:Program Files (x86)Microsoft Visual Studio2022BuildToolsVCAuxiliaryVSinclude" /Tcpsycopgadapter_asis.c /Fobuildtemp.win-amd64-cpython-313Releasepsycopgadapter_asis.obj
adapter_asis.c
C:Program FilesPython313includepyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
It appears you are missing some prerequisite to build the package from source.
You may install a binary package by installing 'psycopg2-binary' from PyPI.
If you want to install psycopg2 from source, please install the packages
required for the build and try again.
For further information please check the 'doc/src/install.rst' file (also at
<https://www.psycopg.org/docs/install.html>).
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.42.34433\bin\HostX86\x64\cl.exe' failed with exit code 2
[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: ERROR: Failed to build installable wheels for some pyproject.toml based projects (psycopg2-binary)
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)
2