Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?
like image 550
PacificNW_Lover Avatar asked Mar 07 '15 23:03

PacificNW_Lover


People also ask

How do I update python 2.7 on Mac?

Update Python Using Python Installer for macOS We can download the installer and update or install the desired version using the Python installer. We can confirm if the new version of Python is successfully installed or not by checking the Python version using the same above two commands.


1 Answers

Try typing python3 instead of just python.

like image 193
rhombidodecahedron Avatar answered Sep 19 '22 05:09

rhombidodecahedron