我在从 http://www.huque.com/software/pykpass/ 安装 pykpass 模块时遇到以下错误。以下是错误:
wrap_kpass.c:1:20: error: Python.h: No such file or directory
wrap_kpass.c:7: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
wrap_kpass.c:9: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
wrap_kpass.c:31: error: array type has incomplete element type
wrap_kpass.c:32: error: ‘wrap_kpass’ undeclared here (not in a function)
wrap_kpass.c:32: error: ‘METH_VARARGS’ undeclared here (not in a function)
wrap_kpass.c:42: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘init_kpass’
任何帮助将不胜感激。
最佳答案
Python.h: No such file or directory
可能您忘记安装包 python-dev
或任何其他形式的 Python 开发 header 。
关于python - 安装pykpass时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4739410/