重新编译python报错

来源:互联网 发布:iphone7 二次曝光软件 编辑:程序博客网 时间:2024/06/05 21:08

1.进行Python版本升级时,重新编译Python,编译错误,错误提示如下:

 if test "x" != "x" ; then \        rm -f /usr/local/bin/python3-32; \        (cd /usr/local/bin; ln -s python3.5-32 python3-32) \    firm -f /usr/local/share/man/man1/python3.1(cd /usr/local/share/man/man1; ln -s python3.5.1 python3.1)if test "xupgrade" != "xno"  ; then \        case upgrade in \            upgrade) ensurepip="--upgrade" ;; \            install|*) ensurepip="" ;; \        esac; \         ./python -E -m ensurepip \            $ensurepip --root=/ ; \    fiIgnoring ensurepip failure: pip 7.1.0 requires SSL/TLS

2.解决方案
这是由于没有安装openssl-devel库造成的

yum install openssl-devel