这些都没有安装python-dev,我安装了amd64系统14.04并运行,当我尝试安装wagtail,django cms时,出现错误:
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
如何解决此问题并安装软件包?
这是因为包中缺少Python.h
c标头python-dev
。
当我尝试以上链接时,它说:
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
对于 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
我研究了debian档案,并找到了一个python 2.7.8-1
无法安装的软件包。