I had older version of python pre-installed on Ubuntu. I recently installed new python3.4 version without removing the older one. In python3 I am not able to see the command history. Searching around, I found that readline module is responsible for the command history and it is missing in python3. So I installed it using
sudo apt-get install libreadline6-dev
It gets installed without any error but python3 still has no readline module. How do I install it to get command history in python3.