Typo fix.
It's libreadline, not readline.
Elaborate error handling.
Install distribute package, contains Python's easy_install.