Skip to content Skip to sidebar Skip to footer

ImportError: No Module Named Tag

I am working on an NLTK project, I have successfully installed it by following the tutorial here, I am using Windows 7. So to help me test my installation, I executed these command

Solution 1:

In your D:// , there is already a nltk.py present. When you import it imports that nltk.py file instead of nltk module. That nltk.py file doesn't have any tag class, function or variable. So that's why the import error.

Answer :

rename the nltk.py file to something else. or move it to some other directory other than your nltk-test.py file's directory.


Post a Comment for "ImportError: No Module Named Tag"