new nltk install not recognized by Python 3.5 (windows 10)

374 views
Skip to first unread message

Michael B

unread,
Oct 12, 2016, 12:54:31 PM10/12/16
to nltk-users
Hello.  I have Python 3.5, 32 bit, installed on a new windows 10 PC. I am trying to install NLTK, and used the nltk installer at https://pypi.python.org/pypi/nltk
After right-clicking on the downloaded code and installing as Administrator, ntlk installs without error. However when I try to import ntlk, from IDLE, I get the following error message: Traceback (most recent call last):
  File "<pyshell#2>", line 1, in <module>
    import ntlk
ImportError: No module named 'ntlk'
>>>
Typing the following:
>>> import sys
>>> sys.path
['', 'C:\\Program Files (x86)\\Python35-32\\Lib\\idlelib', 'C:\\Program Files (x86)\\Python35-32\\python35.zip', 'C:\\Program Files (x86)\\Python35-32\\DLLs', 'C:\\Program Files (x86)\\Python35-32\\lib', 'C:\\Program Files (x86)\\Python35-32', 'C:\\Program Files (x86)\\Python35-32\\lib\\site-packages']
Whereas nltk is installed here  on my system:
C:\Program Files (x86)\Python35-32\Lib\site-packages\nltk

Any suggestions to fix this issue, please.
Note: I am a relatively new python user and totally new to nltk.
Thanks for your help

Dimitriadis, A. (Alexis)

unread,
Oct 12, 2016, 1:17:10 PM10/12/16
to nltk-...@googlegroups.com
It should be “nltk”, not “ntlk” :-)


Alexis

--
You received this message because you are subscribed to the Google Groups "nltk-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nltk-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Michael B

unread,
Oct 12, 2016, 4:37:42 PM10/12/16
to nltk-users
Many thanks Alexis - that "fixed" my problem!
Reply all
Reply to author
Forward
0 new messages