Alexander C
Alexander C

Reputation: 4057

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?

Upvotes: 0

Views: 83

Answers (1)

Alexander C
Alexander C

Reputation: 4057

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 !

Upvotes: 1

Related Questions