无法构建bsdiff modu

2024-04-24 10:47:33 发布

您现在位置:Python中文网/ 问答频道 /正文

大家下午好

在Python中使用bsdiff模块时遇到问题。虽然我可以使用shell脚本,但我更希望有一个跨平台的解决方案。在

我已经下载了bsdiff4-1.1.4并尝试运行设置.py具体如下:

文件列表:

bsdiff4  build  CHANGELOG.txt  do.sh  examples  Makefile  README.rst  setup.py

我运行:

^{pr2}$

我得到一个错误:

/usr/lib/python3.4/distutils/dist.py:260: UserWarning: Unknown distribution option:     'entry_points'
  warnings.warn(msg)
running build
running build_py
running build_ext
building 'bsdiff4.core' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g     -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security     -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c bsdiff4/core.c -o build/temp.linux-x86_64-3.4/bsdiff4/core.o
bsdiff4/core.c:8:20: fatal error: Python.h: No such file or directory
#include <Python.h>
                ^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

我希望能够使用python对二进制文件应用补丁。在

感谢任何帮助。在

何塞


Tags: 模块文件pycoregnubuildincludelinux