Cannot install gensim

1,201 views
Skip to first unread message

Pi lou

unread,
Jul 7, 2017, 9:23:37 AM7/7/17
to gensim
Hi !

I'm using winpython 3.5 with spyder. Numpy is 1.11.3 ; scipy is 0.19.1 and six is >= 1.5.0
I couldn't install gensim, i tried with this : https://github.com/RaRe-Technologies/gensim/blob/develop/setup.py#L290
I launch it and I had : typeError: chown() missing 1 required positional argument: 'numeric_owner'


Even on a 2.7 Python, tried to execute the first part of the gensim tutorial : Corpora and vector spaces until line : >>> dictionary = corpora.Dictionary(texts)
>>> dictionary.save('/tmp/deerwester.dict')  # store the dictionary, for future reference
>>> print(dictionary)
Dictionary(12 unique tokens)

i have this error : rom ._ufuncs import (ellipkm1, mathieu_a, mathieu_b, iv, jv, gamma, psi, zeta,
ImportError: DLL load failed: Le module spécifié est introuvable.

How can i do ? Thanks for answering

Ivan Menshikh

unread,
Jul 10, 2017, 2:19:53 AM7/10/17
to gensim
Hi, Pi,

i have this error : rom ._ufuncs import (ellipkm1, mathieu_a, mathieu_b, iv, jv, gamma, psi, zeta,
ImportError: DLL load failed: Le module spécifié est introuvable.
 
Please try to re-install numpy and scipy.

I'm using winpython 3.5 with spyder. Numpy is 1.11.3 ; scipy is 0.19.1 and six is >= 1.5.0
I couldn't install gensim, i tried with this : https://github.com/RaRe-Technologies/gensim/blob/develop/setup.py#L290
I launch it and I had : typeError: chown() missing 1 required positional argument: 'numeric_owner'

Try to update your `setuptools`, after it install gensim
pip install --upgrade setuptools
pip install
. # in gensim root folder

Pi lou

unread,
Jul 10, 2017, 5:12:33 AM7/10/17
to gensim
Hi Ivan, thanks a lot for answering. I successfully installed gensim by downloading files. I have many errors but I had a simple question : by following the tutorial (https://radimrehurek.com/gensim/tut1.html), will I be able to do word comparision as the famous exaple king man queen woman in the W2V presentation by using a bigger corpus ?
and if it's possible, which part of the algorithm have I to copy ?

(Please excuse my english, i'm french :) )

Gordon Mohr

unread,
Jul 10, 2017, 11:08:32 AM7/10/17
to gensim
This tutorial shows all the steps:


IIRC, even just the 'text8' corpus (as downloaded by the original word2vec.c code via the URL shown at <https://github.com/tmikolov/word2vec/blob/master/demo-word.sh>) can be enough to learn the man:king :: woman: _?_ analogy. (But it might require the slightly-larger `enwik9.zip` corpus, linked at <http://mattmahoney.net/dc/textdata>.)

- Gordon
Message has been deleted

Pi lou

unread,
Jul 11, 2017, 8:16:05 AM7/11/17
to gensim
Thank you very much for the Link. 
Big step forward for me. Have I to paste each lines ? I have few bugs but think i'll ask Radim directly if i can't get through during the day :)
Otherwise, how can I read the zip folder with my python file ?

Pi lou

unread,
Jul 13, 2017, 9:53:15 AM7/13/17
to gensim
Unfortunately, the enwik9.zip file can't be openend (i use winZip). Do you have other corpus of this size ? It would be awesome :)


Le lundi 10 juillet 2017 17:08:32 UTC+2, Gordon Mohr a écrit :

Gordon Mohr

unread,
Jul 13, 2017, 1:42:55 PM7/13/17
to gensim
I've downloaded & uncompressed that file more than once; are you sure your download got the full 322,592,222 bytes? If not, try again?

- Gordon

Pi lou

unread,
Jul 17, 2017, 7:16:24 AM7/17/17
to gen...@googlegroups.com
I tried twice :/ i cannot open the folder.  do you have another link ?
Thank you very much

--
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/BWHzqGjgz3U/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.

Gordon Mohr

unread,
Jul 17, 2017, 3:01:36 PM7/17/17
to gensim
No, but I've just downloaded the enwik9.zip file successfully - it resulted in a 322,592,222 byte file, and uncompressed fine into a 1,000,000,000 byte file. So any problem with downloading/expanding must be specific to your system/network. 

- Gordon
To unsubscribe from this group and all its topics, send an email to gensim+un...@googlegroups.com.

Pi lou

unread,
Jul 19, 2017, 8:43:56 AM7/19/17
to gen...@googlegroups.com
Hi gordon, I succeed in downloading enwik9 (big achievement i know..) but I cannot use model = Word2Vec.load_word2vec_format('enwik9.txt', binary=False)
==> 'Word2Vec' is not defined.
When i have downloaded enwik9.zip. what have I to do ?
Thank you a lot for your help

To unsubscribe from this group and all its topics, send an email to gensim+unsubscribe@googlegroups.com.

Gordon Mohr

unread,
Jul 19, 2017, 1:34:01 PM7/19/17
to gensim
That's a file of text that can be used to train Word2Vec, in the style of the tutorial mentioned earlier (or other tutorials you can find on the web). It's not a vector set you could load with `load_word2vec_format()`. 

Please consult other online or local sources carefully for more help with these basics – these tiny blocks and misunderstandings are not something it's practical to walk you through on a discussion mailing list. 

- Gordon
Reply all
Reply to author
Forward
0 new messages