在pyproject.toml中指定python.h依赖项

时间:2020-09-09 16:19:11

标签: python-3.x tox pyproject.toml

我正在建立一个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一起安装二进制软件包的方法吗?我可以改为以某种方式引用我的本地python.h吗?

0 个答案:

没有答案