The python version is 2.7.6 but when I install IPython
sudo pip install ipython
ipython it points to python 3.4.0. This leads to many syntax errors in modules that I commonly use due to python 3.x incompatibility.
I try editing the first line of the script /usr/local/bin/ipython:
#!/usr/bin/python3.4
becomes
#!/usr/bin/python
But then I get an error:
ImportError: No module named IPython
How can I get Ipython and my default python version (2.7.6) to work together?