Sys-Admin Forum

error: command 'gcc' failed with exit status 1

Ошибка возникает в Fedora в момент установки Twisted:

#include "Python.h"
              ^~~~~~~~~~
    compilation terminated.
    error: command 'gcc' failed with exit status 1
...
failed with error code 1 in /tmp/pip-install-Y54MLT/twisted/

Решилось так:

dnf install gcc gcc-c++ kernel-devel
dnf install python-devel libxslt-devel libffi-devel openssl-devel

Затем:


pip install twisted