pip installing ipython with readline on OSX Lion

golliher picture golliher · Jul 31, 2011 · Viewed 8.6k times · Source

What is required to get ipython fully functional on OSX Lion? I'm trying to get ipython with readline working and having no success.

My approach:

(inside a virtual environment)

pip install ipython # runs, but only slightly useful because can't indent blocks pip install readline

The second completes with warnings and eventually says "Successfully installed readline" But I'm still left without the ability to indent blocks and going back in the command history leads to garbled terminal output.

I suspect these warnings are critical, but I'm at a loss about what to do about them.

ld: warning: ignoring file readline/libreadline.a, file was built for archive which is not the architecture being linked (i386)

ld: warning: ignoring file readline/libhistory.a, file was built for archive which is not the architecture being linked (i386)

(I've spent the morning googling the errors, to no avail)

tia,

Answer

Jakub Roztocil picture Jakub Roztocil · Jul 31, 2011

I've had the same issue and for some reason only the version of readline installed via easy_install readline works fine.