How to choose which version of python runs from terminal?
问题 I have a few different versions of python on my computer. How do I choose which one is run from my terminal when I type "python" into the prompt? 回答1: Use which to see where your python command resides. Then use ls -l to find out where it really is. Then link the one you want instead. Note that the other installed versions are usually all available by their respective names. $ which python /usr/bin/python $ ls -l /usr/bin/python lrwxrwxrwx 1 root root 9 Jun 18 2013 /usr/bin/python -> python2