Skip to content

Issue with macOS 10.11+ and OpenSSL #125

@smajda

Description

@smajda

If you build Python on macOS 10.11+ using pythonz and try to pip install something, you will get the following error:

pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.

The cause, from the Python Developer's Guide:

As of OS X 10.11, Apple no longer provides header files for the deprecated system version of OpenSSL which means that you will not be able to build the _ssl extension. One solution is to install these libraries from a third-party package manager, like Homebrew or MacPorts, and then add the appropriate paths for the header and library files to your configure command. For example, with Homebrew:

To use Homebrew, for example, you can do the following:

$ brew install openssl xz
$ CPPFLAGS="-I$(brew --prefix openssl)/include" \
LDFLAGS="-L$(brew --prefix openssl)/lib" \
pythonz install 3.6.0

Not sure where/how you'd want to document that so I'm just creating an issue. :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions