Search

Translate Page in your Language

Install NLTK

install nltk

Install nltk

I search many times and didn’t get good information to install NLTK for Python 3.6 for windows or earlier version.
There are not well documents issued with python installation on 64-bit or 32-bit Windows.
If you try any of the NLTK setups, “nltk-3.2.4.win32.exe (md5)”, you’ll get “Python is not found in the registry” error.


I found the solution to install manually NLTK installation-package:
Step 1:
Install Python from the link https://www.python.org/downloads/
Step 2:
Download nltk package nltk-3.2.4.tar.gz (md5) from the link https://pypi.python.org/pypi/nltk
Don’t download nltk-3.2.4.win32.exe (md5) because its showing the error “Python is not found in the registry”
Step 3:
When the tar zip file download is completed, copy the file nltk-3.2.4.tar.gz (md5) into the c:\Python directory or where python3.6 is installed and then extract nltk-3.2.4.tar.gz (md5) the file, using winzip.
After extraction you may get the following files in the directory C:\Python36\nltk-3.2.4

Step 4:
Strat command line, change the directory
CD C:\Python36\nltk-3.2.4
Run the command

Step 5:
After the setup.py install command, installation finished, copy the nltk dir from the path C:\Python36\ nltk-3.2.4\nltk, then past it into the following directory, C:\Python36\Lib\site-packages
You may get the following files and directories.


Step 6:
Start the Python command line
Type the following command
>>> import nltk
>>> nltk.download()


It is working, and open the NLTK Downloader window

Now press the Download button and sit back
The Download started.



Good luck

our Email : shaikoftutorials@gmail.com

No comments:

Post a Comment