我按照http://nltk.org/install.html上的说明进行操作。我的python版本是2.7。
当我尝试这样做时:
sudo pip install -U numpy
这不起作用:
File "numpy/core/setup.py", line 271, 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.
有什么想法可以帮助我吗?