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

ImportError: cannot import name wordnet_ubuntu安装

解决:

  1. Install Setuptools:​​http://pypi.python.org/pypi/setuptools​
  2. Install Pip: runsudo 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 typeimport nltk