Skip to content Skip to sidebar Skip to footer

Cannot Import Nltk Under OSX

I use pip install -U nltk to install it. After pip list I can get nltk (3.0.0). Also sys.path includes location of nltk. But when run import nltk, it shows ImportError: No module n

Solution 1:

You might want to try the free Anaconda distribution of Python instead. NLTK comes pre-installed in Anaconda, along with many other popular packages for data analysis, etc. It's a lot easier than having to install & manage hundreds of separate packages individually.

https://store.continuum.io/cshop/anaconda/


Post a Comment for "Cannot Import Nltk Under OSX"