Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #86224
| References | <41302A7145AC054FA7A96CFD03835A0A0B9451B8@EX10MBX02.EU.NEC.COM> |
|---|---|
| Date | 2015-02-24 01:22 +1100 |
| Subject | Re: Python shell: Arrow keys not working in PuTTY |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.19072.1424701346.18130.python-list@python.org> (permalink) |
On Tue, Feb 24, 2015 at 12:44 AM, David Aldrich <David.Aldrich@emea.nec.com> wrote: > I want to use the Python 3.4 interpreter interactively, via a PuTTY ssh > session. Python is running on Centos 5. > > This stackoverflow thread: > > http://stackoverflow.com/questions/893053/python-shell-arrow-keys-do-not-work-on-remote-machine > > suggests that the problem can be fixed by installing the readline package: > > sudo apt-get install libreadline-dev apt-get is for Debian-based Linuxes, but you're running a Red Hat-based Linux. You'll be needing to use 'yum' instead, and I think it's "libreadline-devel" or "readline-devel" for the package name. (Apologies, I don't know CentOS very much. I'm more a Debian guy.) Did you compile Python from source, or did it come from the CentOS repositories? If you compiled from source, then most likely yes, you will need to add that library and rebuild; but it won't be a *full* rebuild - most of the interpreter isn't affected, so you'll be compiling just the handful of files that actually use readline. ChrisA
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Python shell: Arrow keys not working in PuTTY Chris Angelico <rosuav@gmail.com> - 2015-02-24 01:22 +1100
csiph-web