Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Use of Python 2.7 isn’t recommended. This version is included in macOS for compatibility with legacy software. Future versions of macOS won’t include Python 2.7. Instead, it’s recommended that you run python3 in Terminal. (51097165)

and

> LLDB’s Python scripting is now based on Python 3. If you are using Python extensions that aren’t compatible with Python 3, they will break. To help with the transition, you can run in Python 2 mode by setting a default

So looks like python 3 will become available and default



The open secret to using Python on macOS is to leave the system Python (2.7x) completely alone and install pyenv/pipenv to manage your environments. This will save you a world of pain. Since it's 2019 and I no longer need 2.7, when I run this...

$ pyenv versions

system

* 3.7.3 (set by /Users/wyclif/.pyenv/version)

...it's dead simple. Now, if I wanted to I could manage any number of previous versions with pyenv and pipenv.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: