0

我正在建立一个pyproject.toml文件并准备tox基于测试。在安装依赖项时,我遇到了

  ./psycopg/psycopg.h:35:10: fatal error: Python.h: No such file or directory
   #include <Python.h>
            ^~~~~~~~~~
  compilation terminated.

建议在它下面几行:

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.

但是,这真的是使用 tox 安装二进制包的方法吗?我可以以某种方式引用我的 localpython.h吗?

4

0 回答 0