ubuntu安装好nltk,调用时,出现问题:
解决:
- Install Setuptools: http://pypi.python.org/pypi/setuptools
- Install Pip: run sudo easy_install pip
- Install Numpy (optional): run sudo pip install -U numpy
- Install PyYAML and NLTK: run sudo pip install -U pyyaml nltk
- Test installation: run python then type import nltk