Monday, 28 November 2011

Fix the arrow problem in OS X with the python interpreter

Install the readline package from PyPI to enable arrow and history support in python. Download the egg and install using:

easy_install readline-*.egg

For custom python installations, move the .egg to your site-packages path and add it to your python path by adding the following to your .bash_profile:

PYTHONPATH="/path/to/python/site-packages/readline-6.2.1-py2.7-macosx-10.7-intel.egg:$PYTHONPATH"
export PYTHONPATH

No comments:

Post a Comment