Ho provato questo e questo e questo e questo
Nessuno di questi installa python-dev, ho il mio sistema amd64, 14.04 attivo e funzionante, mentre provo a installare wagtail, un django cms, ottengo l'errore:
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
Come posso risolvere questo problema e installare il pacchetto?
È a causa Python.h
dell'intestazione c mancante inclusa nel python-dev
pacchetto.
Quando ho provato i link sopra, dice:
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
per 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
Ho fatto ricerche sugli archivi debian e ho trovato un pacchetto per python 2.7.8-1
ma che non è stato possibile installare.
Ho provato anche questo sul launchpad ma non funziona.