LoginSignup
6
2

More than 5 years have passed since last update.

ModuleNotFoundError: No module named '_bz2'

Posted at

gensimをimportしたらエラーが出てしまったので。

ModuleNotFoundError: No module named '_bz2'

環境

Ubuntu 16.04.5 LTS
Python 3.6.6

対応

sudo apt-get install libbz2-dev

pyenv uninstall 3.6.6
pyenv install 3.6.6

# pip install gensim

※ Pythonの再インストールが必要。
あと、pipでインストールしてたものも。

参考

6
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
2