python - Why can't I import nltk? -


In Windows with a 64 bit OS, once I have nltk-2.0.4.win-amd64-py2.7. Exe has installed, from, to my 64 bit dragon, I run 'import nltk' to get the following error!

  Tracebacks (most recent call final): File "& lt; pyshell # 25" gt; Line, 1, in & lt; Module & gt; Import nltk file "C: \ Python27 \ lib \ site-packages \ nltk \ __ init__.py", line 131, & lt; Module & gt; Estimated import * file "C: \ Python 27 \ lib \ site-packages \ nltk \ inference \ __ init__.py", in line 19, in & lt; Module & gt; Nltk.sem.glue Import "Bid" from the DrtGlue file, "C: \ Python 27 \ lib \ site-packages \ nltk \ inference \ discourse.py", in line 54, in & lt; Module & gt; From speech import (reading comand, cgjring command, c) Nltk.corpus import from Brown File \ Python27 \ lib \ site-packages \ nltk \ sem \ glue.py ", line 13, in the  C: \ Python27 \ lib \ site-packages \ nltk \ corpus \ __ init__ .p ", line 70, reader import by & lt; Module & gt; File "C: \ Python 27 \ lib \ site-packages \ nltk \ corpus \ reader \ __ init__.py", in line 85, in & lt; Module & gt; Import .tkpus.reader.pl196x from nltk * nltk import tokens, import from tree: peston files can not import "c: \ Python 27 \ lib \ site-packages \ nltk \ corpus \ reader \ pl196x.py", line 11, in the & lt; Module & gt;   

>

I refer to this problem Resolve in the form of reference links. It seems that the Python installer can sometimes not create proper registry entries in Win7 enviro, users need to manually create them.

Ref: Link

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -