Multiple python versions on Mac

 I had MacOS Mojave.  It needed multiple versions of pythons esp. I needed a version of Python between 2.6.x and 3.0.x.  I came across this nice article 

https://medium.com/faun/pyenv-multi-version-python-development-on-mac-578736fb91aa

I followed all steps but when I tried to install 2.7.0 and 2.7.1 I ran into this issue.

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

I had openssl installed but it seems it was not the version it was looking for. Eventually I was able to install python version 2.7.15. Looks like 2.7.15 was using the openssl lib which I had it installed hence no issues. 

bash-3.2$ pyenv install 2.7.15

python-build: use openssl@1.1 from homebrew

python-build: use readline from homebrew

Downloading Python-2.7.15.tar.xz...

-> https://www.python.org/ftp/python/2.7.15/Python-2.7.15.tar.xz

Installing Python-2.7.15...

python-build: use readline from homebrew

python-build: use zlib from xcode sdk

Installed Python-2.7.15 to /Users/glbairwa/.pyenv/versions/2.7.15

Comments

Popular posts from this blog

SQL

Analytics

DBeaver