gensim - Python import error no module named bz2 -


i have libbz2-dev installed still getting following import error while importing gensim :

>>> import gensim traceback (most recent call last):   file "<stdin>", line 1, in <module>   file "/home/krishna/gensimenv/lib/python2.7/site-packages/gensim/__init__.py", line 6, in <module>     gensim import parsing, matutils, interfaces, corpora, models, similarities, summarization   file "/home/krishna/gensimenv/lib/python2.7/site-packages/gensim/corpora/__init__.py", line 14, in <module>     .wikicorpus import wikicorpus   file "/home/krishna/gensimenv/lib/python2.7/site-packages/gensim/corpora/wikicorpus.py", line 21, in <module>     import bz2 importerror: no module named bz2 

you can try

pip install bz2file 

Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -