【问题标题】:failed to build wheel for psycopg2?未能为 psycopg2 制造轮子?
【发布时间】:2021-11-17 04:21:01
【问题描述】:

您好,在我重新编写源代码后 并从 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('"'"'\r\n'"'"', '"'"'\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.

!推送被拒绝,无法编译 Python 应用。

!推送失败

任何修复? 谢谢

【问题讨论】:

    标签: django heroku web-deployment


    【解决方案1】:

    查看this post

    建议更新 psycopg2 和 python

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-06-20
      • 2021-01-28
      • 2022-07-21
      • 2020-12-06
      • 1970-01-01
      • 2019-11-05
      • 2021-01-19
      • 2019-02-22
      相关资源
      最近更新 更多