Installing ipython with readline on the mac

前端 未结 6 1461
温柔的废话
温柔的废话 2020-12-14 09:16

I am using ipython on Mac OS 10.5 with python 2.5.1 (I would actually like to use ipython for 2.6.1, but it doesn\'t seem to be available?)

I installed ipython via e

6条回答
  •  Happy的楠姐
    2020-12-14 10:06

    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.

提交回复
热议问题