/data.py in _open(resource_url) 951 if protocol is None or protocol.lower() == 'nltkPlease use the NLTK Downloader to obtain the resource:
>>> nltk.download('punkt') Searched in:
在Python2或Python3中导入NLTK时,错误显示在导入NLTK时无法导入'timezone‘。几天前它工作得很好。Python 3.4.3 (default, Nov 17 2016, 01:08:31) Type "help", "copyright", "credits" or "license" for more information.
>
我已经有nltk了。Python 3.5.2 (default, Nov 23 2017, 16:37:01) Type "help", "copyright", "credits" or "license" for more information.>>>
但是当我运行一个文件并且该文件包含import