On Ubuntu Server 12.04, I had this problem after installing a version of Python from source code (Python3.4).
Some of the comments here recommend installing Ipython, and I want to mention that I have the same behavior, even with Ipython. From what I can say, this is a reading problem.
For Ubuntu 12.04 server, I had to install libncurses-dev and libreadline-dev , and then install Python from the original version to raise the readline history to enable. I pretty much did this:
sudo apt-get install libncurses-dev libreadline-dev
After that, I removed the previously installed Python (NOT THE SYSTEM PITON, the one I installed from the source!) And reinstalled it from the source, and everything worked as expected.
I did not need to install anything using pip or edit .pythonstartup.
erewok Sep 19 '14 at 21:39 2014-09-19 21:39
source share