Ignoring ensurepip failure: pip 7.1.2 requires SSL/TLS - Python 3.x & OS X

后端 未结 1 916
梦谈多话
梦谈多话 2020-12-28 20:24

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

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

相关标签:
1条回答
  • 2020-12-28 20:40

    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="${CPPFLAGS} -I$(brew --prefix openssl)/include"
    export LDFLAGS="${LDFLAGS} -L$(brew --prefix openssl)/lib"
    
    0 讨论(0)
提交回复
热议问题