Install nltk in python 3.6

Asked

Viewed 517 times

-1

Hello.

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

When I do:

import nltk

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

  • I’m a layman but:pip3 nltk ? nltk works well python 3.6.

1 answer

0

I advise first of all reinstall the module of NLTK, in recent months there have been several changes that may be interesting for Voce.

To uninstall just use the command

pip uninstall nltk

On the island of Anaconda.

Later I advise the installation using the command:

conda install nltk

After successful installation just open the python and enter the instruction:

import nltk
nltk.download()

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.