Eu tentei isso e isso e isso e isso
Nenhum deles instala o python-dev, eu tenho meu sistema amd64, 14.04 instalado e funcionando, enquanto tento instalar o wagtail, um django cms, recebo o erro:
pysass.c:4:20: fatal error: Python.h: No such file or directory
#include <Python.h>
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/
libsass/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace
('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-ojWg1O-record/install-
record.txt --single-version-externally-managed --compile failed with error code 1 in
/tmp/pip_build_root/libsass
Storing debug log for failure in /home/payload/.pip/pip.log
Como posso corrigir isso e instalar o pacote?
É por causa do Python.h
cabeçalho c ausente que está incluído no python-dev
pacote.
Quando tentei os links acima, ele diz:
apt-get install python-dev
Package python-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
python
E: Package 'python-dev' has no installation candidate
para apt-get install python2.7-dev
Package python2.7-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'python2.7-dev' has no installation candidate
Eu pesquisei nos arquivos debian e encontrei um pacote, python 2.7.8-1
mas que não pôde ser instalado.
Tentei isso na barra de lançamento também, mas não funciona.
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe restricted multiverse"
#include <Python.h>
erro e executandosudo apt-get install python-dev
corrigi-lo. Isto é com python2.7.