Can't install via pip with errors:
build'
writing manifest file 'psutil.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-i686/egg
running install_lib
running build_py
creating build
creating build/lib.linux-i686-2.6
creating build/lib.linux-i686-2.6/psutil
copying psutil/_psosx.py -> build/lib.linux-i686-2.6/psutil
copying psutil/_common.py -> build/lib.linux-i686-2.6/psutil
copying psutil/_pssunos.py -> build/lib.linux-i686-2.6/psutil
copying psutil/_pslinux.py -> build/lib.linux-i686-2.6/psutil
copying psutil/_psbsd.py -> build/lib.linux-i686-2.6/psutil
copying psutil/_psposix.py -> build/lib.linux-i686-2.6/psutil
copying psutil/_compat.py -> build/lib.linux-i686-2.6/psutil
copying psutil/__init__.py -> build/lib.linux-i686-2.6/psutil
copying psutil/_pswindows.py -> build/lib.linux-i686-2.6/psutil
running build_ext
building '_psutil_linux' extension
creating build/temp.linux-i686-2.6
creating build/temp.linux-i686-2.6/psutil
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fe
xceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=at
om -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pip
e -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffe
r-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -D_GNU_SOURCE
-fPIC -fwrapv -fPIC -I/usr/include/python2.6 -c psutil/_psutil_linux.c -o build
/temp.linux-i686-2.6/psutil/_psutil_linux.o
psutil/_psutil_linux.c:12:20: error: Python.h: No such file or directory
In file included from psutil/_psutil_linux.c:23:
psutil/_psutil_linux.h:11: error: expected β=β, β,β, β;β, βasmβ or β__attribute_
_β before β*β token
psutil/_psutil_linux.h:12: error: expected β=β, β,β, β;β, βasmβ or β__attribute_
_β before β*β token
psutil/_psutil_linux.h:13: error: expected β=β, β,β, β;β, βasmβ or β__attribute_
_β before β*β token
psutil/_psutil_linux.h:14: error: expected β=β, β,β, β;β, βasmβ or β__attribute_
_β before β*β token
psutil/_psutil_linux.h:18: error: expected β=β, β,β, β;β, βasmβ or β__attribute_
_β before β*β token
psutil/_psutil_linux.h:19: error: expected β=β, β,β, β;β, βasmβ or β__attribute_
_β before β*β token
psutil/_psutil_linux.h:20: error: expected β=β, β,β, β;β, βasmβ or β__attribute_
_β before β*β token
psutil/_psutil_linux.c:26: error: βCHAR_BITβ undeclared here (not in a function)
psutil/_psutil_linux.c: In function βioprio_getβ:
psutil/_psutil_linux.c:52: warning: implicit declaration of function βsyscallβ
psutil/_psutil_linux.c: At top level:
psutil/_psutil_linux.c:72: error: expected β=β, β,β, β;β, βasmβ or β__attribute_
_β before β*β token
psutil/_psutil_linux.c:95: error: expected β=β, β,β, β;β, βasmβ or β__attribute_
_β before β*β token
psutil/_psutil_linux.c:183: error: expected β=β, β,β, β;β, βasmβ or β__attribute
__β before β*β token
psutil/_psutil_linux.c:234: error: expected β=β, β,β, β;β, βasmβ or β__attribute
__β before β*β token
psutil/_psutil_linux.c:262: error: expected β=β, β,β, β;β, βasmβ or β__attribute
__β before β*β token
psutil/_psutil_linux.c:361: error: expected β=β, β,β, β;β, βasmβ or β__attribute
__β before β*β token
psutil/_psutil_linux.c:424: error: expected β=β, β,β, β;β, βasmβ or β__attribute
__β before β*β token
psutil/_psutil_linux.c:472: error: expected β=β, β,β, β;β, βasmβ or β__attribute
__β before βPsutilMethodsβ
psutil/_psutil_linux.c:509: error: expected specifier-qualifier-list before βPyO
bjectβ
psutil/_psutil_linux.c: In function βinit_psutil_linuxβ:
psutil/_psutil_linux.c:558: error: βPyObjectβ undeclared (first use in this func
tion)
psutil/_psutil_linux.c:558: error: (Each undeclared identifier is reported only
once
psutil/_psutil_linux.c:558: error: for each function it appears in.)
psutil/_psutil_linux.c:558: error: βmoduleβ undeclared (first use in this functi
on)
psutil/_psutil_linux.c:558: warning: implicit declaration of function βPy_InitMo
duleβ
psutil/_psutil_linux.c:558: error: βPsutilMethodsβ undeclared (first use in this
function)
error: command 'gcc' failed with exit status 1
[root@hive psutil-2.1.3]# pip install psutilon.org/packag
Downloading/unpacking psutil
Downloading psutil-2.1.3.tar.gz (224kB): 224kB downloaded
Running setup.py (path:/tmp/pip_build_root/psutil/setup.py) egg_info for packa
ge psutil
warning: no previously-included files matching '*' found under directory 'do
cs/_build'
Installing collected packages: psutil
Running setup.py install for psutil
building '_psutil_linux' extension
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtun
e=atom -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g
-pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-b
uffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -D_GNU_SO
URCE -fPIC -fwrapv -fPIC -I/usr/include/python2.6 -c psutil/_psutil_linux.c -o b
uild/temp.linux-i686-2.6/psutil/_psutil_linux.o
psutil/_psutil_linux.c:12:20: error: Python.h: No such file or directory
In file included from psutil/_psutil_linux.c:23:
psutil/_psutil_linux.h:11: error: expected β=β, β,β, β;β, βasmβ or β__attrib
ute__β before β*β token
psutil/_psutil_linux.h:12: error: expected β=β, β,β, β;β, βasmβ or β__attrib
ute__β before β*β token
psutil/_psutil_linux.h:13: error: expected β=β, β,β, β;β, βasmβ or β__attrib
ute__β before β*β token
psutil/_psutil_linux.h:14: error: expected β=β, β,β, β;β, βasmβ or β__attrib
ute__β before β*β token
psutil/_psutil_linux.h:18: error: expected β=β, β,β, β;β, βasmβ or β__attrib
ute__β before β*β token
psutil/_psutil_linux.h:19: error: expected β=β, β,β, β;β, βasmβ or β__attrib
ute__β before β*β token
psutil/_psutil_linux.h:20: error: expected β=β, β,β, β;β, βasmβ or β__attrib
ute__β before β*β token
psutil/_psutil_linux.c:26: error: βCHAR_BITβ undeclared here (not in a funct
ion)
psutil/_psutil_linux.c: In function βioprio_getβ:
psutil/_psutil_linux.c:52: warning: implicit declaration of function βsyscal
lβ
psutil/_psutil_linux.c: At top level:
psutil/_psutil_linux.c:72: error: expected β=β, β,β, β;β, βasmβ or β__attrib
ute__β before β*β token
psutil/_psutil_linux.c:95: error: expected β=β, β,β, β;β, βasmβ or β__attrib
ute__β before β*β token
psutil/_psutil_linux.c:183: error: expected β=β, β,β, β;β, βasmβ or β__attri
bute__β before β*β token
psutil/_psutil_linux.c:234: error: expected β=β, β,β, β;β, βasmβ or β__attri
bute__β before β*β token
psutil/_psutil_linux.c:262: error: expected β=β, β,β, β;β, βasmβ or β__attri
bute__β before β*β token
psutil/_psutil_linux.c:361: error: expected β=β, β,β, β;β, βasmβ or β__attri
bute__β before β*β token
psutil/_psutil_linux.c:424: error: expected β=β, β,β, β;β, βasmβ or β__attri
bute__β before β*β token
psutil/_psutil_linux.c:472: error: expected β=β, β,β, β;β, βasmβ or β__attri
bute__β before βPsutilMethodsβ
psutil/_psutil_linux.c:509: error: expected specifier-qualifier-list before
βPyObjectβ
psutil/_psutil_linux.c: In function βinit_psutil_linuxβ:
psutil/_psutil_linux.c:558: error: βPyObjectβ undeclared (first use in this
function)
psutil/_psutil_linux.c:558: error: (Each undeclared identifier is reported o
nly once
psutil/_psutil_linux.c:558: error: for each function it appears in.)
psutil/_psutil_linux.c:558: error: βmoduleβ undeclared (first use in this fu
nction)
psutil/_psutil_linux.c:558: warning: implicit declaration of function βPy_In
itModuleβ
psutil/_psutil_linux.c:558: error: βPsutilMethodsβ undeclared (first use in
this function)
error: command 'gcc' failed with exit status 1
Complete output from command /usr/bin/python -c "import setuptools, tokenize
;__file__='/tmp/pip_build_root/psutil/setup.py';exec(compile(getattr(tokenize, '
open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install
--record /tmp/pip-LEQsL2-record/install-record.txt --single-version-externally-
managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-i686-2.6
creating build/lib.linux-i686-2.6/psutil
copying psutil/_psosx.py -> build/lib.linux-i686-2.6/psutil
copying psutil/_common.py -> build/lib.linux-i686-2.6/psutil
copying psutil/_pssunos.py -> build/lib.linux-i686-2.6/psutil
copying psutil/_pslinux.py -> build/lib.linux-i686-2.6/psutil
copying psutil/_psbsd.py -> build/lib.linux-i686-2.6/psutil
copying psutil/_psposix.py -> build/lib.linux-i686-2.6/psutil
copying psutil/_compat.py -> build/lib.linux-i686-2.6/psutil
copying psutil/__init__.py -> build/lib.linux-i686-2.6/psutil
copying psutil/_pswindows.py -> build/lib.linux-i686-2.6/psutil
running build_ext
building '_psutil_linux' extension
creating build/temp.linux-i686-2.6
creating build/temp.linux-i686-2.6/psutil
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fe
xceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=at
om -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pip
e -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffe
r-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -D_GNU_SOURCE
-fPIC -fwrapv -fPIC -I/usr/include/python2.6 -c psutil/_psutil_linux.c -o build
/temp.linux-i686-2.6/psutil/_psutil_linux.o
psutil/_psutil_linux.c:12:20: error: Python.h: No such file or directory
In file included from psutil/_psutil_linux.c:23:
psutil/_psutil_linux.h:11: error: expected β=β, β,β, β;β, βasmβ or β__attribute_
_β before β*β token
psutil/_psutil_linux.h:12: error: expected β=β, β,β, β;β, βasmβ or β__attribute_
_β before β*β token
psutil/_psutil_linux.h:13: error: expected β=β, β,β, β;β, βasmβ or β__attribute_
_β before β*β token
psutil/_psutil_linux.h:14: error: expected β=β, β,β, β;β, βasmβ or β__attribute_
_β before β*β token
psutil/_psutil_linux.h:18: error: expected β=β, β,β, β;β, βasmβ or β__attribute_
_β before β*β token
psutil/_psutil_linux.h:19: error: expected β=β, β,β, β;β, βasmβ or β__attribute_
_β before β*β token
psutil/_psutil_linux.h:20: error: expected β=β, β,β, β;β, βasmβ or β__attribute_
_β before β*β token
psutil/_psutil_linux.c:26: error: βCHAR_BITβ undeclared here (not in a function)
psutil/_psutil_linux.c: In function βioprio_getβ:
psutil/_psutil_linux.c:52: warning: implicit declaration of function βsyscallβ
psutil/_psutil_linux.c: At top level:
psutil/_psutil_linux.c:72: error: expected β=β, β,β, β;β, βasmβ or β__attribute_
_β before β*β token
psutil/_psutil_linux.c:95: error: expected β=β, β,β, β;β, βasmβ or β__attribute_
_β before β*β token
psutil/_psutil_linux.c:183: error: expected β=β, β,β, β;β, βasmβ or β__attribute
__β before β*β token
psutil/_psutil_linux.c:234: error: expected β=β, β,β, β;β, βasmβ or β__attribute
__β before β*β token
psutil/_psutil_linux.c:262: error: expected β=β, β,β, β;β, βasmβ or β__attribute
__β before β*β token
psutil/_psutil_linux.c:361: error: expected β=β, β,β, β;β, βasmβ or β__attribute
__β before β*β token
psutil/_psutil_linux.c:424: error: expected β=β, β,β, β;β, βasmβ or β__attribute
__β before β*β token
psutil/_psutil_linux.c:472: error: expected β=β, β,β, β;β, βasmβ or β__attribute
__β before βPsutilMethodsβ
psutil/_psutil_linux.c:509: error: expected specifier-qualifier-list before βPyO
bjectβ
psutil/_psutil_linux.c: In function βinit_psutil_linuxβ:
psutil/_psutil_linux.c:558: error: βPyObjectβ undeclared (first use in this func
tion)
psutil/_psutil_linux.c:558: error: (Each undeclared identifier is reported only
once
psutil/_psutil_linux.c:558: error: for each function it appears in.)
psutil/_psutil_linux.c:558: error: βmoduleβ undeclared (first use in this functi
on)
psutil/_psutil_linux.c:558: warning: implicit declaration of function βPy_InitMo
duleβ
psutil/_psutil_linux.c:558: error: βPsutilMethodsβ undeclared (first use in this
function)
error: command 'gcc' failed with exit status 1
----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build
_root/psutil/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).re
ad().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-LEQsL2
-record/install-record.txt --single-version-externally-managed --compile failed
with error code 1 in /tmp/pip_build_root/psutil
Traceback (most recent call last):
File "/usr/bin/pip", line 11, in <module>
sys.exit(main())
File "/usr/lib/python2.6/site-packages/pip/__init__.py", line 185, in main
return command.main(cmd_args)
File "/usr/lib/python2.6/site-packages/pip/basecommand.py", line 161, in main
text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 47: ordinal
not in range(128)
[root@hive psutil-2.1.3]#
...or with tar, via setup.py:
[root@hive psutil-2.1.3]# python setup.py install
running install
running bdist_egg
running egg_info
writing psutil.egg-info/PKG-INFO
writing top-level names to psutil.egg-info/top_level.txt
writing dependency_links to psutil.egg-info/dependency_links.txt
reading manifest file 'psutil.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*' found under directory 'docs/_
build'
writing manifest file 'psutil.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-i686/egg
running install_lib
running build_py
creating build
creating build/lib.linux-i686-2.6
creating build/lib.linux-i686-2.6/psutil
copying psutil/_psosx.py -> build/lib.linux-i686-2.6/psutil
copying psutil/_common.py -> build/lib.linux-i686-2.6/psutil
copying psutil/_pssunos.py -> build/lib.linux-i686-2.6/psutil
copying psutil/_pslinux.py -> build/lib.linux-i686-2.6/psutil
copying psutil/_psbsd.py -> build/lib.linux-i686-2.6/psutil
copying psutil/_psposix.py -> build/lib.linux-i686-2.6/psutil
copying psutil/_compat.py -> build/lib.linux-i686-2.6/psutil
copying psutil/__init__.py -> build/lib.linux-i686-2.6/psutil
copying psutil/_pswindows.py -> build/lib.linux-i686-2.6/psutil
running build_ext
building '_psutil_linux' extension
creating build/temp.linux-i686-2.6
creating build/temp.linux-i686-2.6/psutil
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fe
xceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=at
om -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pip
e -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffe
r-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -D_GNU_SOURCE
-fPIC -fwrapv -fPIC -I/usr/include/python2.6 -c psutil/_psutil_linux.c -o build
/temp.linux-i686-2.6/psutil/_psutil_linux.o
psutil/_psutil_linux.c:12:20: error: Python.h: No such file or directory
In file included from psutil/_psutil_linux.c:23:
psutil/_psutil_linux.h:11: error: expected β=β, β,β, β;β, βasmβ or β__attribute_
_β before β*β token
psutil/_psutil_linux.h:12: error: expected β=β, β,β, β;β, βasmβ or β__attribute_
_β before β*β token
psutil/_psutil_linux.h:13: error: expected β=β, β,β, β;β, βasmβ or β__attribute_
_β before β*β token
psutil/_psutil_linux.h:14: error: expected β=β, β,β, β;β, βasmβ or β__attribute_
_β before β*β token
psutil/_psutil_linux.h:18: error: expected β=β, β,β, β;β, βasmβ or β__attribute_
_β before β*β token
psutil/_psutil_linux.h:19: error: expected β=β, β,β, β;β, βasmβ or β__attribute_
_β before β*β token
psutil/_psutil_linux.h:20: error: expected β=β, β,β, β;β, βasmβ or β__attribute_
_β before β*β token
psutil/_psutil_linux.c:26: error: βCHAR_BITβ undeclared here (not in a function)
psutil/_psutil_linux.c: In function βioprio_getβ:
psutil/_psutil_linux.c:52: warning: implicit declaration of function βsyscallβ
psutil/_psutil_linux.c: At top level:
psutil/_psutil_linux.c:72: error: expected β=β, β,β, β;β, βasmβ or β__attribute_
_β before β*β token
psutil/_psutil_linux.c:95: error: expected β=β, β,β, β;β, βasmβ or β__attribute_
_β before β*β token
psutil/_psutil_linux.c:183: error: expected β=β, β,β, β;β, βasmβ or β__attribute
__β before β*β token
psutil/_psutil_linux.c:234: error: expected β=β, β,β, β;β, βasmβ or β__attribute
__β before β*β token
psutil/_psutil_linux.c:262: error: expected β=β, β,β, β;β, βasmβ or β__attribute
__β before β*β token
psutil/_psutil_linux.c:361: error: expected β=β, β,β, β;β, βasmβ or β__attribute
__β before β*β token
psutil/_psutil_linux.c:424: error: expected β=β, β,β, β;β, βasmβ or β__attribute
__β before β*β token
psutil/_psutil_linux.c:472: error: expected β=β, β,β, β;β, βasmβ or β__attribute
__β before βPsutilMethodsβ
psutil/_psutil_linux.c:509: error: expected specifier-qualifier-list before βPyO
bjectβ
psutil/_psutil_linux.c: In function βinit_psutil_linuxβ:
psutil/_psutil_linux.c:558: error: βPyObjectβ undeclared (first use in this func
tion)
psutil/_psutil_linux.c:558: error: (Each undeclared identifier is reported only
once
psutil/_psutil_linux.c:558: error: for each function it appears in.)
psutil/_psutil_linux.c:558: error: βmoduleβ undeclared (first use in this functi
on)
psutil/_psutil_linux.c:558: warning: implicit declaration of function βPy_InitMo
duleβ
psutil/_psutil_linux.c:558: error: βPsutilMethodsβ undeclared (first use in this
function)
error: command 'gcc' failed with exit status 1
[root@hive psutil-2.1.3]#
You need to "yum install python-devel" (or something like that).
Most helpful comment
You need to "yum install python-devel" (or something like that).