Skip to content

Can't install ptop on CentOS 7 #57

@Ryukote

Description

@Ryukote

Hi,

I am trying to install ptop on CentOS 7 without success.
The error I am getting is:

psutil/_psutil_common.c:9:20: fatal error: Python.h: No such file or directory
#include <Python.h>
^
compilation terminated.
error: command 'gcc' failed with exit status 1

----------------------------------------

Command "/usr/bin/python2 -u -c "import setuptools, tokenize;file='/tmp/pip-install-aKSv9b/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-XEO958/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-aKSv9b/psutil/

I understand that it says I need Python.h but there is no one. With what should it be comming?

EDIT: I have tried with yum install python34-devel but I get the same error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions