0
我希望這是正確的地方,而不是堆棧溢出的Unix用戶等;如何在Debian上安裝python-affinity軟件包?
如何在Debian Squeeze上安裝Python包affinity?我已經下載了tar,解壓縮了它,然後運行了下面的命令,但是失敗了;我從來沒有像這樣放過一個Python模塊,所以我迷路了:)
[email protected]:~/affinity-0.1.0# python setup.py install
running install
install_dir /usr/local/lib/python2.6/dist-packages/
Checking .pth file support in /usr/local/lib/python2.6/dist-packages/
/usr/bin/python -E -c pass
TEST PASSED: /usr/local/lib/python2.6/dist-packages/ appears to support .pth files
running bdist_egg
running egg_info
writing affinity.egg-info/PKG-INFO
writing top-level names to affinity.egg-info/top_level.txt
writing dependency_links to affinity.egg-info/dependency_links.txt
reading manifest file 'affinity.egg-info/SOURCES.txt'
writing manifest file 'affinity.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib.linux-x86_64-2.6
creating build/lib.linux-x86_64-2.6/affinity
copying affinity/__init__.py -> build/lib.linux-x86_64-2.6/affinity
running build_ext
building 'affinity._affinity' extension
creating build/temp.linux-x86_64-2.6
creating build/temp.linux-x86_64-2.6/affinity
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c affinity/_affinity.c -o build/temp.linux-x86_64-2.6/affinity/_affinity.o
affinity/_affinity.c:14:20: error: Python.h: No such file or directory
affinity/_affinity.c:17: error: expected ‘)’ before string constant
affinity/_affinity.c:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
affinity/_affinity.c:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
affinity/_affinity.c:63: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘methods’
affinity/_affinity.c:80: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘init_affinity’
error: command 'gcc' failed with exit status 1