ModuleNotFoundError: No module named '_lzma' when building python
前言
运行 python
报错:ModuleNotFoundError: No module named '_lzma' when building python
解决
sudo apt-get install lzma
sudo apt-get install liblzma-dev
sudo apt-get install libbz2-dev
重新编译安装 python
./configure
make
make install