LZMA comes as part of the XZ open source compression library
LZMA 是XZ的一部分,所以安装XZ库就可以了
https://tukaani.org/xz/xz-5.2.3.tar.gz
下载xz安装包
安装XZ
mkdir xz
tar -xvf xz-5.2.3.tar.gz
cd xz-5.2.3
./configure --prefix=~/xz
make
make install
重新编译python3.6
cd Python-3.6.1
./configure LDFLAGS="-L/home/gyn/xz/lib" CPPFLAGS="-I/home/gyn/xz/include" --predix="/home/gyn/python3.6" (为python指明XZ的路径)
make && make install