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
Post a Comment