Installing nltk in python 3.6

0

Hello.

How do I install nltk in python 3.6? I use the anaconda.

When I do:

import nltk

And I run, it does not make a mistake, but when I do nltk. for autocomplete, does not work. The module is installed, but there is some import mismatch for the code. I read in the nltk documentation that only works on python 2.7 and 3.4. That is, I use 3.6 and reinstall everything again, even from a .txt file with the packages, I can run the risk of causing another incompatibility, since I'm using padnas, numpy, skit-learn, bokhe, matplotlib, etc.

    
asked by anonymous 01.10.2017 / 00:48

1 answer

0

I recommend first of all to reinstall the NLTK module, in the last few months there have been several changes that may be interesting for you.

To uninstall just use the

pip uninstall nltk

On the Anaconda console.

Later I advise you to install using the command:

conda install nltk

After successful installation simply open python and enter the statement:

import nltk
nltk.download()

will open the library download window, just select what you need.

    
27.07.2018 / 22:46