Home:ALL Converter>Import Error for gensim in spyder(python)

Import Error for gensim in spyder(python)

Ask Time:2017-12-11T13:13:16         Author:utkarsh verma

Json Formatter

I am trying to import gensim in spyder (Python). I have already installed the package through cmd. Here is the code I have come up with:

import gensim
from gensim import corpora,models
dictionary = corpora.Dictionary(texts)
corpus = [dictionary.doc2bow(text) for text in texts]
ldamodel = gensim.models.ldamodel.LdaModel(corpus, num_topics=3, id2word = dictionary, passes=20)

Problem is it's showing the error

ImportError: No module named gensim

Author:utkarsh verma,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/47746802/import-error-for-gensim-in-spyderpython
yy