python - gensim error : no module named gensim -
i trying import gensim.
i have following code
import gensim model = gensim.models.word2vec.load_word2vec_format('./model/googlenews- vectors-negative300.bin', binary=true)
i got following error.
importerror traceback (most recent call last) <ipython-input-5-50007be813d4> in <module>() ----> 1 import gensim 2 model = gensim.models.word2vec.load_word2vec_format('./model /googlenews-vectors-negative300.bin', binary=true) importerror: no module named 'gensim'
i installed gensim in python. use genssim word2vec.
install gensim using:
pip install -u gensim
or, if have instead downloaded , unzipped source tar.gz package, run:
python setup.py test python setup.py install
Comments
Post a Comment