为什么我不能导入nltk?

Cur*_*ous 5 python windows 64-bit nltk

在具有64位操作系统的Windows中,一旦我从http://www.lfd.uci.edu/~gohlke/pythonlibs/安装了nltk-2.0.4.win-amd64-py2.7.exe,我的64位python,我运行'import nltk'来获得以下错误!

Traceback (most recent call last):
  File "<pyshell#25>", line 1, in <module>
    import nltk
  File "C:\Python27\lib\site-packages\nltk\__init__.py", line 131, in <module>
    from inference import *
  File "C:\Python27\lib\site-packages\nltk\inference\__init__.py", line 19, in <module>
    from discourse import (ReadingCommand, CfgReadingCommand,
  File "C:\Python27\lib\site-packages\nltk\inference\discourse.py", line 54, in <module>
    from nltk.sem.glue import DrtGlue
  File "C:\Python27\lib\site-packages\nltk\sem\glue.py", line 13, in <module>
    from nltk.corpus import brown
  File "C:\Python27\lib\site-packages\nltk\corpus\__init__.py", line 70, in <module>
    from reader import *
  File "C:\Python27\lib\site-packages\nltk\corpus\reader\__init__.py", line 85, in <module>
    from nltk.corpus.reader.pl196x import *
  File "C:\Python27\lib\site-packages\nltk\corpus\reader\pl196x.py", line 11, in <module>
    from nltk import tokenize, tree
ImportError: cannot import name tokenize
Run Code Online (Sandbox Code Playgroud)

关于如何解决这个问题的建议将不胜感激.谢谢

小智 2

我按照以下参考链接解决了这个问题。看来Python安装程序有时无法在Win7环境中创建正确的注册表项,用户需要手动创建它们。

参考链接:http://www.fbagirov.com/2012/10/13/installing-nltk-for-python/