Installing NLTK¶
NLTK requires Python versions 2.7, 3.4, or 3.5
Mac/Unix¶
- Install NLTK: run
sudo pip install -U nltk
- Install Numpy (optional): run
sudo pip install -U numpy
- Test installation: run
python
then typeimport nltk
For older versions of Python it might be necessary to install setuptools (see http://pypi.python.org/pypi/setuptools) and to install pip (sudo easy_install pip
).
Windows¶
These instructions assume that you do not already have Python installed on your machine.
32-bit binary installation¶
- Install Python 3.5: http://www.python.org/downloads/ (avoid the 64-bit versions)
- Install Numpy (optional): http://sourceforge.net/projects/numpy/files/NumPy/ (the version that specifies python3.5)
- Install NLTK: http://pypi.python.org/pypi/nltk
- Test installation:
Start>Python35
, then typeimport nltk
Installing Third-Party Software¶
Please see: https://github.com/nltk/nltk/wiki/Installing-Third-Party-Software