Error on Gensim installation

1,834 views
Skip to first unread message

Joe T.

unread,
Nov 1, 2017, 12:26:15 PM11/1/17
to gensim
I'm a Python newbie running Python 3.6.2 in Windows 8.1.

I used > pip install to "successfully install" numpy 1.13.3, scipy 1.0.0, matplotlib 2.1.0, and gensim 3.0.1.

All of those packages show up as separate folders in my site-packages directory.

And I get no error messages when I >>> import numpy, scipy, and matplotlib into Python.

But when I try to >>> import gensim into Python I get a multi-line error message ending "ImportError: DLL load failed: The specified module could not be found."

How can I get gensim to import? 

I would deeply appreciate any help you could give me. I'd love to get gensim to work and start using word2vec.

Thank you!

Ivan Menshikh

unread,
Nov 2, 2017, 5:01:24 AM11/2/17
to gensim
Hi Joe

1. Try to re-install gensim (pip uninstall gensim, pip install -U gensim)
2. If (1) did not help, try to install gensim from https://www.lfd.uci.edu/~gohlke/pythonlibs/#gensim.

Joe Toplyn

unread,
Nov 2, 2017, 2:55:23 PM11/2/17
to gen...@googlegroups.com
Hi, Ivan,

Thanks so much for your prompt and clear response!

Your suggestion #1 worked perfectly: pip uninstall gensim, pip install -U gensim.

I had previously tried both suggestions but maybe that was what caused the problem: at one point I saw that I had gensim in two separate folders in my site-packages folder. 

Earlier I also tried pip install without the -U; apparently the -U is necessary.

Thanks again!

-- Joe T.





--
You received this message because you are subscribed to a topic in the Google Groups "gensim" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gensim/7kYtfom1i4A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gensim+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages