阅读 82

Installing NLTK — NLTK 2.0 documentation

Installing NLTK — NLTK 2.0 documentation

Mac/Unix¶

  1. Open Finder>Applications>Utilities>Terminal and type python -V to find out what version of Python is installed

  2. Install Setuptools: Download the corresponding version of Setuptools from
    http://pypi.python.org/pypi/setuptools (scroll to the bottom, and pick the filename that contains the right version number and which has the extension .egg). Install it by typing sudo sh Downloads/setuptools-...egg, giving the location of the downloaded file.

  3. Install Pip: run sudo easy_install pip

  4. Install Numpy (optional): run sudo pip install -U numpy

  5. Install PyYAML and NLTK: run sudo pip install -U pyyaml nltk

  6. Test installation: run python then type import nltk


文章分类
代码人生
版权声明:本站是系统测试站点,无实际运营。本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 XXXXXXo@163.com 举报,一经查实,本站将立刻删除。
相关推荐