How do I repeat the last command? The usual keys: Up, Ctrl+Up, Alt-p don\'t work. They produce nonsensical characters.
(ve)[kakarukeys@localhost ve]$ python
I don't understand why there are so many long explanations about this. All you have to do is install the pyreadline package with:
pip install pyreadline sudo port install py-readline (on Mac)
(Assuming you have already installed PIP.)