原因是安装python3时(我这里是python3.9),没有libbz2-dev 解决办法 1.安装libbz2-dev apt-get install libbz2-dev 2.重新编译python3