我正在尝试按照以下说明安装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
发布评论