Closed ampf27 closed 4 years ago
Im trying to install PSUtil on kali 2020.1 but Im getting the following errors
Text ERROR: Command errored out with exit status 1: command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-kAouIG/psutil/setup.py'"'"'; __file__='"'"'/tmp/pip-install-kAouIG/psutil/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-tw1ykP cwd: /tmp/pip-install-kAouIG/psutil/ Complete output (44 lines): running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-2.7 creating build/lib.linux-x86_64-2.7/psutil copying psutil/_compat.py -> build/lib.linux-x86_64-2.7/psutil copying psutil/_common.py -> build/lib.linux-x86_64-2.7/psutil copying psutil/_psaix.py -> build/lib.linux-x86_64-2.7/psutil copying psutil/_pswindows.py -> build/lib.linux-x86_64-2.7/psutil copying psutil/_pslinux.py -> build/lib.linux-x86_64-2.7/psutil copying psutil/__init__.py -> build/lib.linux-x86_64-2.7/psutil copying psutil/_psosx.py -> build/lib.linux-x86_64-2.7/psutil copying psutil/_psbsd.py -> build/lib.linux-x86_64-2.7/psutil copying psutil/_pssunos.py -> build/lib.linux-x86_64-2.7/psutil copying psutil/_psposix.py -> build/lib.linux-x86_64-2.7/psutil creating build/lib.linux-x86_64-2.7/psutil/tests copying psutil/tests/test_process.py -> build/lib.linux-x86_64-2.7/psutil/tests copying psutil/tests/test_windows.py -> build/lib.linux-x86_64-2.7/psutil/tests copying psutil/tests/test_posix.py -> build/lib.linux-x86_64-2.7/psutil/tests copying psutil/tests/test_linux.py -> build/lib.linux-x86_64-2.7/psutil/tests copying psutil/tests/test_sunos.py -> build/lib.linux-x86_64-2.7/psutil/tests copying psutil/tests/test_aix.py -> build/lib.linux-x86_64-2.7/psutil/tests copying psutil/tests/test_bsd.py -> build/lib.linux-x86_64-2.7/psutil/tests copying psutil/tests/test_connections.py -> build/lib.linux-x86_64-2.7/psutil/tests copying psutil/tests/__main__.py -> build/lib.linux-x86_64-2.7/psutil/tests copying psutil/tests/runner.py -> build/lib.linux-x86_64-2.7/psutil/tests copying psutil/tests/test_memory_leaks.py -> build/lib.linux-x86_64-2.7/psutil/tests copying psutil/tests/test_contracts.py -> build/lib.linux-x86_64-2.7/psutil/tests copying psutil/tests/test_system.py -> build/lib.linux-x86_64-2.7/psutil/tests copying psutil/tests/__init__.py -> build/lib.linux-x86_64-2.7/psutil/tests copying psutil/tests/test_unicode.py -> build/lib.linux-x86_64-2.7/psutil/tests copying psutil/tests/test_misc.py -> build/lib.linux-x86_64-2.7/psutil/tests copying psutil/tests/test_osx.py -> build/lib.linux-x86_64-2.7/psutil/tests running build_ext building 'psutil._psutil_linux' extension creating build/temp.linux-x86_64-2.7 creating build/temp.linux-x86_64-2.7/psutil x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-07FOaN/python2.7-2.7.17=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_SIZEOF_PID_T=4 -DPSUTIL_VERSION=570 -DPSUTIL_LINUX=1 -I/usr/include/python2.7 -c psutil/_psutil_common.c -o build/temp.linux-x86_64-2.7/psutil/_psutil_common.o psutil/_psutil_common.c:9:10: fatal error: Python.h: No such file or directory 9 | #include <Python.h> | ^~~~~~~~~~ compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 ---------------------------------------- ERROR: Failed building wheel for psutil Running setup.py clean for psutil Failed to build psutil Installing collected packages: psutil Running setup.py install for psutil ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-kAouIG/psutil/setup.py'"'"'; __file__='"'"'/tmp/pip-install-kAouIG/psutil/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-6Az80j/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python2.7/psutil cwd: /tmp/pip-install-kAouIG/psutil/ Complete output (44 lines): running install running build running build_py creating build creating build/lib.linux-x86_64-2.7 creating build/lib.linux-x86_64-2.7/psutil copying psutil/_compat.py -> build/lib.linux-x86_64-2.7/psutil copying psutil/_common.py -> build/lib.linux-x86_64-2.7/psutil copying psutil/_psaix.py -> build/lib.linux-x86_64-2.7/psutil copying psutil/_pswindows.py -> build/lib.linux-x86_64-2.7/psutil copying psutil/_pslinux.py -> build/lib.linux-x86_64-2.7/psutil copying psutil/__init__.py -> build/lib.linux-x86_64-2.7/psutil copying psutil/_psosx.py -> build/lib.linux-x86_64-2.7/psutil copying psutil/_psbsd.py -> build/lib.linux-x86_64-2.7/psutil copying psutil/_pssunos.py -> build/lib.linux-x86_64-2.7/psutil copying psutil/_psposix.py -> build/lib.linux-x86_64-2.7/psutil creating build/lib.linux-x86_64-2.7/psutil/tests copying psutil/tests/test_process.py -> build/lib.linux-x86_64-2.7/psutil/tests copying psutil/tests/test_windows.py -> build/lib.linux-x86_64-2.7/psutil/tests copying psutil/tests/test_posix.py -> build/lib.linux-x86_64-2.7/psutil/tests copying psutil/tests/test_linux.py -> build/lib.linux-x86_64-2.7/psutil/tests copying psutil/tests/test_sunos.py -> build/lib.linux-x86_64-2.7/psutil/tests copying psutil/tests/test_aix.py -> build/lib.linux-x86_64-2.7/psutil/tests copying psutil/tests/test_bsd.py -> build/lib.linux-x86_64-2.7/psutil/tests copying psutil/tests/test_connections.py -> build/lib.linux-x86_64-2.7/psutil/tests copying psutil/tests/__main__.py -> build/lib.linux-x86_64-2.7/psutil/tests copying psutil/tests/runner.py -> build/lib.linux-x86_64-2.7/psutil/tests copying psutil/tests/test_memory_leaks.py -> build/lib.linux-x86_64-2.7/psutil/tests copying psutil/tests/test_contracts.py -> build/lib.linux-x86_64-2.7/psutil/tests copying psutil/tests/test_system.py -> build/lib.linux-x86_64-2.7/psutil/tests copying psutil/tests/__init__.py -> build/lib.linux-x86_64-2.7/psutil/tests copying psutil/tests/test_unicode.py -> build/lib.linux-x86_64-2.7/psutil/tests copying psutil/tests/test_misc.py -> build/lib.linux-x86_64-2.7/psutil/tests copying psutil/tests/test_osx.py -> build/lib.linux-x86_64-2.7/psutil/tests running build_ext building 'psutil._psutil_linux' extension creating build/temp.linux-x86_64-2.7 creating build/temp.linux-x86_64-2.7/psutil x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-07FOaN/python2.7-2.7.17=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_SIZEOF_PID_T=4 -DPSUTIL_VERSION=570 -DPSUTIL_LINUX=1 -I/usr/include/python2.7 -c psutil/_psutil_common.c -o build/temp.linux-x86_64-2.7/psutil/_psutil_common.o psutil/_psutil_common.c:9:10: fatal error: Python.h: No such file or directory 9 | #include <Python.h> | ^~~~~~~~~~ compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 ---------------------------------------- ERROR: Command errored out with exit status 1: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-kAouIG/psutil/setup.py'"'"'; __file__='"'"'/tmp/pip-install-kAouIG/psutil/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-6Az80j/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python2.7/psutil Check the logs for full command output.
Im trying to install PSUtil on kali 2020.1 but Im getting the following errors