【问题标题】:Ignoring ensurepip failure: pip 7.1.2 requires SSL/TLS - Python 3.x & OS X忽略 ensurepip 失败:pip 7.1.2 需要 SSL/TLS - Python 3.x & OS X
【发布时间】:2016-05-18 18:48:03
【问题描述】:

我正在尝试根据这些说明安装 Python 3.5.1:

http://thomas-cokelaer.info/blog/2014/08/installing-another-python-version-into-virtualenv/

我有:OS X 10.11.3,没有 Homebrew。 Xcode 已安装。 Xcode 命令行工具已安装。

一切顺利,直到make install 运行了一段时间。然后它退出:

if test "xupgrade" != "xno"  ; then \
        case upgrade in \
            upgrade) ensurepip="--upgrade" ;; \
            install|*) ensurepip="" ;; \
        esac; \
         ./python.exe -E -m ensurepip \
            $ensurepip --root=/ ; \
    fi
Ignoring ensurepip failure: pip 7.1.2 requires SSL/TLS

我已经搜索了很长时间,我只能找到 Homebrew 或 Apache 或其他服务器的说明。我知道我必须在我的系统上安装 SSL/TLS,但我没有运气。

我不想要 Homebrew 的最大原因是我希望非 CS 学生遵循相同的程序,并且我不希望他们安装 Homebrew。

【问题讨论】:

    标签: python macos python-3.x


    【解决方案1】:

    它给你一个错误,因为它错过了 OpenSSL。不过苹果在 Xcode 中不再提供 OpenSSL,所以需要手动安装。最简单的方法是使用Homebrew package manager,安装所需的包,然后包含 OpenSSL 库:

    export CPPFLAGS="${CPPFLAGS} -I$(brew --prefix openssl)/include"
    export LDFLAGS="${LDFLAGS} -L$(brew --prefix openssl)/lib"
    

    【讨论】:

    • 是的,我试图不安装 Homebrew,但没有其他工作。我终于用上了:brew install opensslbrew link --overwrite --dry-run opensslbrew link --force openssl
    • 感谢您的面包屑,在遵循这些说明cloudwafer.com/blog/installing-openssl-on-ubuntu-16-04-18-04 后我能够安装 python 3.9
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-04-27
    • 2018-04-15
    • 2012-04-26
    • 2012-03-16
    • 1970-01-01
    相关资源
    最近更新 更多