PiP paket yükleme hatası
Diyelim pip ile bir python modülü eklemeyi deniyorsunuz ve şöyle bir hata aldınız;
gevent/gevent.core.c:9:22: fatal error: pyconfig.h: No such file or directory
#include "pyconfig.h"
^
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/gevent/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-zusRaj-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/gevent
Storing debug log for failure in /root/.pip/pip.log
Çözümü şu şekilde;
yum install python-devel yum install python-lxml
Debian için
apt-get install python-dev apt-get install python-lxml
Python Modüllerini Kolay Ekleme (PiP) Ubuntu : PİP Kurulumu