SREとはのブログ

日々の作業メモ

ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?

ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?

Please consult to the Wiki page to fix the problem.
https://github.com/pyenv/pyenv/wiki/Common-build-problems


BUILD FAILED (OS X 10.14.6 using python-build 20180424)

Inspect or clean up the working tree at /var/folders/17/srvl_ppx07552qwk9vs1q6g80000gp/T/python-build.20200109220219.16661
Results logged to /var/folders/17/srvl_ppx07552qwk9vs1q6g80000gp/T/python-build.20200109220219.16661.log

Last 10 log lines:
rm -f /Users/mt/.pyenv/versions/2.7.10/share/man/man1/python.1
(cd /Users/mi/.pyenv/versions/2.7.10/share/man/man1; ln -s python2.1 python.1)
if test "xno" != "xno"  ; then \
                case no in \
                        upgrade) ensurepip="--upgrade" ;; \
                        install|*) ensurepip="" ;; \
                esac; \
                 ./python.exe -E -m ensurepip \
                        $ensurepip --root=/ ; \
        fi

blufflog.hatenablog.com

これだとダメだったので こちらの下のほう

qiita.com

これもだめだったので

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

www.xn--ebkc7kqd.com

あとは qiita.com