> On Jun 3, 2019, at 5:53, Floh <
flo...@gmail.com> wrote:
>
> ...regarding the python version confusion on macOS:
>
> The preinstalled python version on macOS is indeed stuck at 2.7.10, even in the latest macOS Mojave Beta. This will most likely never be updated, but AFAIK the pre-installed python version also isn't really recommended for general use.
>
> Instead use brew to install an uptodate python2 version:
>
> > brew install python@2
>
> This will override the system python version on the command line:
>
> > which python
> /usr/local/bin/python
> > python --version
> Python 2.7.16
>
> Note that "brew install python" will install the latest python 3.x version, but as "python3" command so that it doesn't clash with any python 2.7.x versions. Only doing this will still run the outdated 2.7.10 version when running "python" on the command line.
>
Thanks for the reply. Alon has fixed Emscripten so it no longer insists on 2.7.12 and works with 2.7.10.
Actually the pre-installed 2.7.10 is just the same as any other 2.7.10, except that it already includes PyObjC rather than requiring an additional download. I’ve been using it and its predecessors for a long time without any problem. I don’t know why it would not be recommended for general use.
I actually already had a MacPorts distribution of Python2 installed. It was 2.7.10 as well and not installed all that long ago. I have updated to the latest MacPorts version which is 2.10.16 like Brew. Not the very latest available but close enough. But I’ll probably continue to default to the pre-installed Python.
Regards
-Mark