Python Learning Notes (8)-Implementing the Linux System Python command line cursor movement

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.