phanein / deepwalk

DeepWalk - Deep Learning for Graphs
http://www.perozzi.net/projects/deepwalk/
Other
2.68k stars 826 forks source link

ImportError: cannot import name 'Vocab' from 'gensim.models.word2vec' #123

Closed woshichunge12 closed 3 years ago

woshichunge12 commented 3 years ago

After installing deepwalk, enter deepwalk on the command line and it will display the above error

woshichunge12 commented 3 years ago

OK, U just need to download gensim==3.8.3 instead of 4.0.0

cpeisze commented 3 years ago

im still having the similar issue (cannot import name 'Vocab' from 'gensim.models.word2vec') after install gensim==3.8.1. Any other advice?

Glacier-Luo commented 3 years ago

im still having the similar issue (cannot import name 'Vocab' from 'gensim.models.word2vec') after install gensim==3.8.1. Any other advice?

Try to reinstall in the order of numpy scipy gensim==3.8.3