ImportError: cannot import name wordnet

ubuntu安装好nltk,调用时,出现问题:

解决:

  1. Install Setuptools: http://pypi.python.org/pypi/setuptools
  2. Install Pip: run sudo easy_install pip
  3. Install Numpy (optional): run sudo pip install -U numpy
  4. Install PyYAML and NLTK: run sudo pip install -U pyyaml nltk
  5. Test installation: run python then type import nltk

 

posted @ 2013-10-18 16:11  jihite  阅读(3319)  评论(0编辑  收藏  举报