错误:缺少OpenSSL库?在pyenv/SUSE12环境中安装python时

2024-04-29 17:19:36 发布

您现在位置:Python中文网/ 问答频道 /正文

我已经尝试在pyenv env中安装python,其中出现了以下错误。我已经将openssl添加到path变量中,因为openssl已经可用,但它仍然抛出相同的错误。

另外,现在尝试使用单独的用户(而不是根用户)。同样的错误!并试图跟踪wiki页面,但对于OpenSUSE,我在google上也找不到太多帮助。

有人能给我指点一下如何继续下去吗。

 xxxxx@xxxxxxxxxxx:~/.pyenv> pyenv install 3.5.2
    Downloading Python-3.5.2.tar.xz...
    -> https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tar.xz
    Installing Python-3.5.2...
    WARNING: The Python bz2 extension was not compiled. Missing the bzip2 lib?
    WARNING: The Python readline extension was not compiled. Missing the GNU readline lib?
    ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?

    Please consult to the Wiki page to fix the problem.
    https://github.com/yyuu/pyenv/wiki/Common-build-problems


    BUILD FAILED (SLES 12.1 using python-build 20160726)

    Inspect or clean up the working tree at /tmp/python-build.20160801100205.31144
    Results logged to /tmp/python-build.20160801100205.31144.log

    Last 10 log lines:
    (cd /home/xxxxx/.pyenv/versions/3.5.2/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=/ ; \
    fi
    Ignoring ensurepip failure: pip 8.1.1 requires SSL/TLS

Tags: theto用户pyenvlib错误extensionnot