ModuleNotFoundError: No module named'_bz2' error in pyenv Python

ModuleNotFoundError: No module named '_bz2'

I was at a loss when I got the error. Apparently there is no bzip2-devel, so I installed it and reinstalled Python and it worked

sudo yum install bzip2-devel 
pyenv uninstall 3.6.0
pyenv install 3.6.0

You have to reinstall Python. I'm glad I solved it.

Recommended Posts

ModuleNotFoundError: No module named'_bz2' error in pyenv Python
Today's python error: ModuleNotFoundError: No module named
Today's python error: ModuleNotFoundError: No module named
Today's python error: ModuleNotFoundError: No module named'requests'
ModuleNotFoundError in Python: No module named story
Today's python error: ModuleNotFoundError: No module named'bs4'
Import Error in Python3: No module named'xxxxx'
Import cv2 ModuleNotFoundError: No module named'cv2' in python3
[Python] ModuleNotFoundError: No module named'urlparse'
ModuleNotFoundError in poetry: No module named'setuptools'
What to do when ModuleNotFoundError: No module named'XXX' occurs in Python
ModuleNotFoundError: No module named'py4j'
ModuleNotFoundError: No module named'flask_sqlalchemy'
The problem that scikit-learn gives the error No module named'_bz2'
Slice error in python (´ ; ω ; `)
What to do if you get Swagger-codegen in python and Import Error: No module named
[Python] logging in your own module
Use Python in pyenv with NeoVim
There is no switch in python
Python unittest module execution in vs2017
[Question] No module named'Selenium' in PyCharm
Master the weakref module in Python
Error: pyenv: no such command `sh-activate'
How to deal with python installation error in pyenv (BUILD FAILED)
How to resolve ModuleNotFoundError: No module named XXX in Jupyter Notebook
Why ModuleNotFoundError: No module named'dataset.mnist' appears in "Deep Learning from scratch".
Error when installing opencv-python on jetson nano (ModuleNotFoundError: No module named'skbuild')
How to resolve "No kernel of grammar Python found" error in Atom
Microsoft Cognitive Toolkit: ModuleNotFoundError: No module named'cntk._cntk_py'
Implementation module "deque" in queue and Python
Revived from "no internet access" in Python
Comparison of Japanese conversion module in Python3
In python + sqlite3 "OperationalError: no such column:"
Dealing with Python error "Attribute Error: module'scipy.misc' has no attribute'imresize'" in deep learning
Module to generate word N-gram in Python
ModuleNotFoundError: No module named'***' when running Flask
I get a Python No module named'encodings' error with the aws command
Module import and exception handling in python
Install the Python module in any directory
Upgrading Python module in OSX El Capitan
Is pyenv broken? Python 3.x references 2.x module at startup due to PYTHONPATH error
How to deal with "No module named'〇〇'" error in Jupyter Notebook | Install with! Pip!
Attempting to install opencv-python3 on jetson nano but error (ModuleNotFoundError: No module named'skbuild')
Error when installing a module with Python pip
Solution for "Import Error: No module named requests"
python> import seiral> ImportError: No module named serial
AttributeError: module'urllib' has no attribute'request' error in urllib.request
Resolve Japanese write error UnicodeEncodeError in Python files
Use cryptography module to handle OpenSSL in Python
To add a module to python put in Julialang
How to use tkinter with python in pyenv
To write to Error Repoting in Python on GAE
I tried adding a Python3 module in C
Use a custom error page in python / tornado
Parallel processing with no deep meaning in Python
Error when trying to install psycopg2 in Python
[python] ERROR: Python headers are missing in /usr/include/python3.X m.
Solution when module'XXX' has no attribute'XXX' in Python
Quadtree in Python --2
Python in optimization
CURL in python