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

 

你可能感兴趣的:(import)