Reputation: 1488
Terminal is still showing Python 2.7.2 after an install of 3.3.0
I'm new to python- just want to get a good development environment working on Mac 10.8.
Upvotes: 2
Views: 3143
Reputation: 2120
You have few options
~/.bash_profile
add alias python='python3'
python
command use python3
instead.Upvotes: 0
Reputation: 54312
See PEP 394:
This PEP provides a convention to ensure that Python scripts can continue to be portable across *nix systems, regardless of the default version of the Python interpreter (i.e. the version invoked by the python command).
python2
will refer to some version of Python 2.xpython3
will refer to some version of Python 3.xpython
should refer to the same target as python2 but may refer to python3 on some bleeding edge distributions
You have Python 2 and Python 3 installed, so the python
command refers to python2
. If you want Python 3, do it explicitly with the python3
command.
Upvotes: 5
Reputation: 251146
Use python3
instead of python
:
$ python3
Python 3.2.3 (default, Oct 19 2012, 19:53:57)
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Upvotes: 9