2011-01-19 138 views
1

我在http://www.huque.com/software/pykpass/上安裝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’ 

任何幫助將非常感激。

+1

對於第一個錯誤:你在Linux上運行它?因爲Python頭文件包含在`python-dev`包中。 – rubik 2011-01-19 19:06:32

回答

1

Python.h: No such file or directory

也許你忘了安裝包python-dev或Python的開發頭文件的任何其他形式。

+0

感謝,像一個魅力:) – w2lame 2011-01-19 20:27:52