我正在建立一个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
吗?