忽略surepip失败:pip 7.1.2需要SSL/TLS

编程入门 行业动态 更新时间:2024-10-23 23:28:20
本文介绍了忽略surepip失败:pip 7.1.2需要SSL/TLS-Python 3.x& OS X的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在尝试按照以下说明安装Python 3.5.1:

I am trying to install Python 3.5.1 according to these instructions:

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

我有:OS X 10.11.3,没有自制软件. Xcode已安装. Xcode命令行工具已安装.

I have: OS X 10.11.3, no Homebrew. Xcode is installed. Xcode Command Line Tools are installed.

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

Everything goes well until make install has run for a while. Then it quits with this:

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,但是我没有运气.

I have been searching for a long time and all I can find are instructions for Homebrew or for Apache or other servers. I understand that I've got to get SSL/TLS on my system, but I've had no luck.

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

The biggest reason I don't want Homebrew is that I want non-CS students to follow the same procedure, and I don't want them to install Homebrew.

推荐答案

由于错过了 OpenSSL ,因此会给您一个错误.但是,Apple不再在Xcode中提供 OpenSSL ,因此您需要手动安装.最简单的方法是使用 Homebrew程序包管理器,安装所需的程序包,然后包含 OpenSSL 库:

It gives you an error because it misses OpenSSL. However Apple no longer provides OpenSSL in Xcode, so you need to manually install. The simplest approach is to use the Homebrew package manager, install the required package, and then include the OpenSSL libs:

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

更多推荐

忽略surepip失败:pip 7.1.2需要SSL/TLS

本文发布于:2023-07-04 11:04:11,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1023540.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:pip   surepip   TLS   SSL

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!