简体   繁体   中英

Python3.6.2 shell on TAB pressed inserts tab character instead of autocomplete. How to fix it?

I've installed python 3.6.2 from source on Linux Mint 17. Also I've python 3.4.3 with OS installation. Just noticed that autocompete on TAB in interactive shell works only in 3.4.3. In 3.6.2 it just inserts tab character.

Any solutions?

Autocomplete and navigating history in python shell uses readline library (and module). You can check its availability by import readline .

  1. Install readline-dev library by sudo apt-get install libreadline-dev
  2. Recompile python

Appreciation for @user2357112 !

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM