如何在 CentOS 6 上安裝 python psutil?

如何在 CentOS 6 上安裝 python psutil?
#yum install python26 python26-devel python26-setuptools gcc
#easy_install psutil
[root@vps021 ~]# easy_install psutil
Searching for psutil
Reading http://pypi.python.org/simple/psutil/
Best match: psutil 3.2.2
Downloading https://pypi.python.org/packages/source/p/psutil/psutil-3.2.2.tar.gz#md5=56df1727c9e26076a80da4c3f8f67976
Processing psutil-3.2.2.tar.gz
Running psutil-3.2.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-JLmzFu/psutil-3.2.2/egg-dist-tmp-1dna_f
warning: no previously-included files matching '*' found under directory 'docs/_build'
warning: manifest_maker: MANIFEST.in, line 18: 'recursive-include' expects <dir> <pattern1> <pattern2> ...
psutil/_psutil_linux.c:12:20: error: Python.h: No such file or directory

但是 python26-devel 已安裝。這怎麼可能?我不確定如何在此系統上安裝 python psutil? (我也對只有 python 2.6 版本感到非常不滿意,但不幸的是,我與這個系統綁定在一起。)

相關內容