“WARNING: Readline services not available or not loaded.” on CensOS 6.x

In CentOS 6.7, sometimes iPython shows “WARNING: Readline services not available or not loaded.”

yum install readline-devel

then, install readline with pip or easy_install

pip install readline