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

ImportError: cannot import name wordnet

解决:

  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

 

相关文章:

  • 2021-09-27
  • 2022-01-05
  • 2021-12-17
  • 2022-03-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-03
  • 2021-12-24
  • 2021-12-29
  • 2021-07-27
  • 2021-08-12
  • 2022-01-19
  • 2021-08-06
相关资源
相似解决方案