zlib安装成功,再次安装setuptools还是提示“zipimport.ZipImportError: can‘t decompress data; zlib not available”,google上有人说只能重新编译安装python了,不过在编译的时候修改编辑Modules/Setup.dist文件,将
#zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz
这行的注释去掉,然后在次编译安装
重新安装好python后,再次执行:主意路径
重新编译make install|
……
f test "xupgrade" != "xno" ; then \
case upgrade in \
upgrade) ensurepip="--upgrade" ;; \
install|*) ensurepip="" ;; \
esac; \
./python -E -m ensurepip \
$ensurepip --root=/ ; \
fi
Ignoring ensurepip failure: pip 9.0.1 requires SSL/TLS