I've looked through a lot of the other question/answers for this topic but no avail.
I downloaded numpy and nltk using pip, and based on the messages I know the install location is:
Requirement already satisfied (use --upgrade to upgrade): nltk in /usr/local/lib/python2.7/site-packages
, so it looks like it's installing in the directory for version 2.7.
When I run python
I get Python 2.7.3 (v2.7.3:70274d53c1dd, Apr 9 2012, 20:52:43)
, so that's clearly also version 2.7.
However, when I try "import nltk" or "import numpy" in the Python console, I always get the ImportError: No module named nltk
error. Any advice would be greatly appreciated!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…