Erro ao instalar o NLTK

0

Estou seguindo as etapas fornecidas neste link para instalar o link do NLTK. Mas estou recebendo o erro durante a execução do comando sudo pip install -U numpy .

saída (última parte):

    out = check_types(*a, **kw)

  File "numpy/core/setup.py", line 293, in check_types

    "Cannot compile 'Python.h'. Perhaps you need to "\

SystemError: Cannot compile 'Python.h'. Perhaps you need to install python-dev|python-devel.

----------------------------------------
Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-lYs_os/numpy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-Vu1Dyw-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-lYs_os/numpy

por favor ajude a fazer isso? Existe alguma alternativa?

    
por user2328556 11.02.2015 / 19:21

1 resposta

0

Tente instalar python-dev como o erro sugere:

sudo apt-get install python-dev

python-devel é para sistemas baseados em RHEL e python-dev para sistemas baseados em Debian.

    
por muru 11.02.2015 / 19:27

Tags