ImportError:No module named Numpy

Discussion in 'Python' started by HninHnin, Feb 19, 2017.

  1. HninHnin


    Feb 19, 2017
    Likes Received:
    Python 3.5.3 (v3.5.3:1880cb95a742, Jan 16 2017, 15:51:26) [MSC v.1900 32 bit (Intel)] on win32
    Type "copyright", "credits" or "license()" for more information.
    >>> import nltk
    >>> sentence="I am a teacher"
    >>> tokens = nltk.word_tokenize(sentence)
    >>> tokens
    ['I', 'am', 'a', 'teacher']
    >>> tagged = nltk.pos_tag(tokens)
    Traceback (most recent call last):
    File "<pyshell#4>", line 1, in <module>
    tagged = nltk.pos_tag(tokens)
    File "C:\Users\Hnin Hnin\AppData\Local\Programs\Python\Python35-32\Lib\site-packages\nltk\tag\", line 103, in pos_tag
    tagger = load(_POS_TAGGER)
    File "C:\Users\Hnin Hnin\AppData\Local\Programs\Python\Python35-32\Lib\site-packages\nltk\", line 786, in load
    resource_val = pickle.load(opened_resource)
    ImportError: No module named 'numpy'
    HninHnin, Feb 19, 2017
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.