No module named '_bz2' 에러 해결하기


No module named '_bz2' 에러 해결하기

It is happening because of a .so file being missing. Say for python3.7 download the file from: _bz2.cpython-37m-x86_64-linux-gnu.so For different versions of python try finding this file for your version. Say for python3.8 change 37 to 38 etc. and find and download the file. Now for Ubuntu: copy the file inside /usr/local/lib/python3.7 folder using sudo privilege. To do this, go to the folder where the file is downloaded and execute the command (change your filename and destination folder based on your python versions accordingly): sudo cp _bz2.cpython-37m-x86_64-linux-gnu.so /usr/local/lib/py..........



원문링크 : No module named '_bz2' 에러 해결하기