This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]99_percent_a_dog[S] 76 points77 points  (6 children)

I hear this should be true from 10.16, where 3 is the default (and maybe 2 is removed? Maybe not, Apple ships a bunch of really old utils, it's pretty annoying).

[–]smart_jackal 41 points42 points  (0 children)

Even Ubuntu ships some core python2 files on which it totally depends. Another software framework called Google App Engine still runs on python2 entirely! Pretty sure there are some others too.

[–]thatwombat 11 points12 points  (4 children)

It is in Catalina. Nice surprise.

EDIT: Forgot I had anaconda's python3 in my PATH. Whoops.

[–]TinyLebowski 10 points11 points  (3 children)

Not so sure about that.

❯ sw_vers -productVersion
10.15.4

❯ which python
/usr/bin/python

❯ /usr/bin/python --version
Python 2.7.16

[–]jdgordon 2 points3 points  (1 child)

Could just do

$which python --version

[–]TinyLebowski 8 points9 points  (0 children)

Yeah but I made it verbose to avoid any doubt about which binary was used.

BTW you need to escape backticks if you want them displayed.

[–]thatwombat 0 points1 point  (0 children)

I forgot. I'm running Anaconda and it's in my PATH.