To install ipython on Snow Leopard or Lion without using MacPorts, you can simply do:
sudo easy_install readline ipython
(Note that if you use the "pip" to install readline, then ipython won't see the readline library, not sure why).
Edit:
If you had ipython installed remove it with
sudo pip uninstall ipython
or
pip uninstall ipython #for virtualenvs
Then make sure you have installed readline first and reinstall iptyhon
pip install readline ipython
For some reasons, if readline wasn't present during the installation, it will install itself without support for readline or it use the default mac readline.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…