Title of this node
1. Implement Python command line cursor movement
1.1, first check that there is no installation readline-devel
1.2, second view readline-devel the correct package name and install
1.3. Final compilation and installation of Python
=============================================================================================================== ========
1. Implement Python command line cursor movement
In a Linux system, Python moves the cursor up or down to show ABCD
Here's how to do it before you install Python.
1.1, first check that there is no installation readline-devel
Rpm-qa | grep ReadLine//See if there is a readline-devel installed
1.2, second view readline-devel the correct package name and install
Use Yum search ReadLine//view readline-devel the correct package name
Use yum-y install Readline-devel
1.3. Final compilation and installation of Python
After installing Readline-devel, the installation directory in Pthon
Use make && make install//recompile && install Python
When you run Python again, the next key will move right and left.
Python Learning Notes (8)-Implementing the Linux System Python command line cursor movement