1

I have installed the newest iPython in Mac. However, it uses the Python verion 2.5.1.

I installed the Python 2.6.1 by MacPython package at here.

How can I make my iPython to use Python 2.6.1?

I am not sure where the MacPython package exactly installed the newest Python. The newest Python should somehow put the PATH so that iPyhon can use it.

[edit] after the first answer

I run the following command

$ln -s python python2.6

I cannot open python2.6 by

python

2 Answers 2

4

A good way to get it to work is here. I needed to restart my terminal before ipython pointed to python2.6. Note the latest ipython distribution is 0.10, not 0.9.

Sign up to request clarification or add additional context in comments.

1 Comment

This answer is correct. The accepted answer is just a hack that doesn't address the problem.
1

you should have a python, python2.5 and python2.6, is that correct? If you wan't to use python2.6 system wide the symple solution would be to sym link (ln -s ..) python to python2.6 instead of python2.5

2 Comments

I run the following $ln -s python python2.6, but $ python does not open Python2.6.
you got it the the wrong way around you need to do $ln -s /full/path/to/python2.6 /full/path/to/python /full/path/to needs to be replaced with the real path name for where the python2.6 is installed (by default /opt/local/bin/ if you installed it with macports)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.