Installed Python 3 on Mac OS X but its still Python 2.7

PacificNW_Lover picture PacificNW_Lover · Mar 8, 2015 · Viewed 90.3k times · Source

I am currently running OS X Yosemite (10.10.2) on my MacBook Pro... By default, Apple ships Python 2.7.6 on Yosemite.

Just downloaded and ran this installer for Python 3: python-3.4.3-macosx10.6.pkg

When I opened up my Terminal and typed in python, this is what came up:

Python 2.7.6 (default, Sep  9 2014, 15:04:36) 
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>

Question(s):

  1. Does anyone know where the Python 3.4.3 interpreter was installed?
  2. Do I need to uninstall Python 2.7.3 (if so, how do I go about doing this) before setting a global environmental variable such as PYTHON_HOME to the location of the installed Python 3.4.3?

Answer

rhombidodecahedron picture rhombidodecahedron · Mar 8, 2015

Try typing python3 instead of just python.