【问题标题】:Ignoring ensurepip failure: pip requires SSL/TLS - Python 3.4.X with pyenv on OS X忽略 ensurepip 失败:pip 需要 SSL/TLS - Python 3.4.X with pyenv on OS X
【发布时间】:2020-02-26 11:46:10
【问题描述】:

我正在尝试通过 pyenv 安装 python 版本 3.4.10,但我收到错误 Ignoring ensurepip failure: pip 9.0.1 requires SSL/TLS。对于 3.4.10 之后的 python 版本(例如:3.5.9),它确实成功了。 我尝试按照this StackOverflow postthe official pyenv Common Build page 上的说明进行操作,但它总是返回以下错误消息:

Last 10 log lines:
(cd ~/.pyenv/versions/3.4.10/share/man/man1; ln -s python3.4.1 python3.1)
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 9.0.1 requires SSL/TLS

【问题讨论】:

    标签: macos openssl python-3.4 pyenv


    【解决方案1】:

    我遇到了this post,它指定卸载OpenSSL v1.1 并导致pyenv 安装正确版本的OpenSSL (1.0.2) 来编译python。

    对我有用的解决方案是:

    brew uninstall --ignore-dependencies openssl@1.1
    pyenv install 3.4.10
    

    注意:这可能会导致某些依赖于OpenSSL 的库崩溃,因此请在之后使用brew install openssl 重新安装最新版本,或执行以下操作以获得版本1.0.0 via冲泡:

     brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb
    

    【讨论】:

      猜你喜欢
      • 2016-05-18
      • 1970-01-01
      • 1970-01-01
      • 2011-10-20
      • 2014-05-30
      • 2017-04-27
      • 2018-04-15
      • 2018-06-08
      相关资源
      最近更新 更多