python - 安装pykpass时出错

标签 python installation kerberos

我在从 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/

相关文章:

python - 在Python中将多张Excel文件按一列拆分

python - 如果 DoubleVar 或 IntVar 为空,tkinter python 3.4 设置为零

c# - ServiceProcessInstaller 失败并显示 "No mapping between account names and security IDs was done"

Kerberos 身份验证失败, "Configuration file does not specify default realm"

c++ - 允许在没有 Active Directory 信任的情况下进行 winhttp 委派

python - 参数解析 : ValueError when using --help or -h option with nargs

python - 在多对多关系中搜索项目

winforms - 如何删除以前版本的脱机 clickonce 应用程序

.net - 如何将更新部署到集群中的 .NET 网站

java - 通过 Kerberos 使用 Active Directory 进行身份验证