PS Nayak
PS Nayak

Reputation: 421

ImportError: No module named 'gensim'

I have installed gensim for Windows by the command:

conda install -c anaconda gensim

I have an environment py35. I'm trying to run a Python script using the import statement: from gensim.models import Word2Vec where there is an error ImportError: No module named 'gensim'. Any idea what to be done?

Upvotes: 0

Views: 5407

Answers (1)

Yilun Zhang
Yilun Zhang

Reputation: 9018

You need to install the package as it does not come with Python. This will do the job:

pip install --upgrade gensim

Upvotes: 1

Related Questions