Home / Machine Learning / Install NLTK in Continuum Anaconda Environment

Install NLTK in Continuum Anaconda Environment

After complete this tutorial, we will have NLTK  (Natural Language Toolkit) platform installed in Anaconda environment. NLTK is a leading platform for building Python programs to work with human language data. And Anaconda is the leading open data science platform powered by Python.

Following these steps below to installing Anaconda and NLTK:

  1. Download and install Anaconda. The recommend version of Python is 2.7, as most of APIs are programmed in 2.7. However, you can download the 3.6 version, Anaconda supports multiple Python version for each project.
  2. Install Microsoft Visual C++ Compiler for Python 2.7.
  3. Install Cygwin and the following components: gcc-coregcc-g++libgcc1, gdb, makelibmpfr4.
  4. Add Cygwin bin path to system path. By default, it would stay at C:\cygwin64\bin.
  5. Open Anaconda Navigator and create a new environment.
  6. Then, open its terminal window.
  7. To install NLTK, type the command: pip install -U nltk
  8. Check the installation by typing: python, then import nltk. If no error appear, type exit(), otherwise, check the above steps.
  9. From now, you can install NLTK Data and use it.

Notes:

  • You don’t need to install Python before installing Anaconda.

About Phuc Duong [Admin]

Lecturer, Scientist of Faculty of Information Technology, Ton Duc Thang University (Vietnam).

Check Also

Measuring Similarity and Sentiment Analysis with Theano 0.7