Reputation: 25
recently I ungraded python version to 3.4, and found command "python" doesn't work in terminal, get "-sh: python: command not found". But "python3" or "python3.4" works well. I've added this into ~/.profie:
PATH="/Library/Frameworks/Python.framework/Versions/3.4/bin:${PATH}"
export PATH
System : OS X 10.9.3 Anyone knows why?
Thanks.
Fixed. @Suku's answer helps a lot. Just reinstalled python 2.7.7, problem solved. Thanks.
Upvotes: 0
Views: 158
Reputation: 742
"python" refers only to python 2.X; if you have only python3 installed on your computer then "python" will not work.
This is needed because python 3 introduces many backwards-incompatible changes. For example, in python 3, print
is a function, not a statement. This necessitates access to the 2.X python for python 2.X applications.
Upvotes: 2