No module named 'nltk'

it always shows this error where as i already install the nltk

Hey @yashaswiupmon, you need to install nltk first. Use this command in jupyter
!pip install nltk

Hope this resolved your doubt.
Plz mark the doubt as resolved in my doubts section. :blush:

i already try this and it shows:
Requirement already satisfied: nltk in c:\users\kiit\anaconda3\lib\site-packages (3.4)
Requirement already satisfied: six in c:\users\kiit\appdata\roaming\python\python37\site-packages (from nltk) (1.12.0)
Requirement already satisfied: singledispatch in c:\users\kiit\anaconda3\lib\site-packages (from nltk) (3.4.0.3)

Hey @yashaswiupmon, try to import nltk in jupyter notebook, and check if its working there.

yes it is working in jupyter notebook.But while use it and compile in CMD it shows the error why?

Hey @yashaswiupmon, try running the command, pip3 install nltk

hey @S18CRX0120
i tried but it is not working it shows this

Hey @yashaswiupmon, try running your code by command,
python3 myfile.py

If this doesn’t resolve your issue, than there is problem with the local system. Use jupyter only.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

1 Like