PyCharm printing 'True' when importing nltk

Viewed 308

I have the following code running in Pycharm using Anaconda package manager with Python 3.6

print('before')

import nltk

print('after')

And I am getting this result in the console of PyCharm.

before
True
after

When I run this in the command line of Python output is normal as expected.

It appears the import statement of NLTK module is printing True. Any thoughts would be appreciated.

I have already tried Invalidate Caches / Restart option in PyCharm

1 Answers

I got so sick of using Anaconda, that I ended up uninstalling it and just installed Python clean from python.org and the issue went away in PyCharm

Related