ModuleNotFoundError: No module named '_bz2'
前言
运行 python
报错:ModuleNotFoundError: No module named '_bz2' when building python
解决
安装在 Ubuntu/Debian 上:
sudo apt-get install libbz2-dev
安装在 Fedora 上:
sudo yum install bzip2-devel
重新编译安装 python
./configure
make
make install