Python universal missing SSL on MacOS 14.3 (M3)

I am trying to install a universal version of python using pyenv. I have tried the following, but it is missing SSL for some reason

env PYTHON_CONFIGURE_OPTS="--enable-shared --enable-universalsdk --with-universal-archs=universal2" pyenv install 3.10.4



    file /Users/geoffroddick/.pyenv/versions/3.10.4/bin/python3.10
/Users/geoffroddick/.pyenv/versions/3.10.4/bin/python3.10: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64] [arm64:Mach-O 64-bit executable arm64]
/Users/geoffroddick/.pyenv/versions/3.10.4/bin/python3.10 (for architecture x86_64):    Mach-O 64-bit executable x86_64
/Users/geoffroddick/.pyenv/versions/3.10.4/bin/python3.10 (for architecture arm64): Mach-O 64-bit executable arm64

Running “python -m pip install update pip” fails and I don’t know why, nor how to fix - any suggestions?

    WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/update/

It looks like there are known issues with PyEnv and SSL on MacOS. Have you tried the suggested workarounds, e.g. for this one:

Still get the same error :frowning:

WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/update/

I found a solution that works here: