为psycopg2构建wheel失败?



你好,我重写了我的源代码从heroku克隆我的网站

我得到这个错误

日志:

psycopg/psycopgmodule.c: In function ‘psyco_is_main_interp’:
psycopg/psycopgmodule.c:689:18: error: dereferencing pointer to incomplete type ‘PyInterpreterState’ {aka ‘struct _is’}
689 |     while (interp->next)
|                  ^~
error: command '/usr/bin/gcc' failed with exit code 1
----------------------------------------
ERROR: Command errored out with exit status 1: /app/.heroku/python/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-t_xxbtyy/psycopg2-binary/setup.py'"'"'; __file__='"'"'/tmp/pip-install-t_xxbtyy/psycopg2-binary/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-cevcg2_6/install-record.txt --single-version-externally-managed --compile --install-headers /app/.heroku/python/include/python3.9/psycopg2-binary Check the logs for full command output.

!Push被拒绝,编译Python应用失败。

!把失败

有修复吗??由于

查看这篇文章

建议更新psycopg2和python

最新更新