2

I am still learning Python and nowadays I discover the use of virtualenv.

I run LMDE2 (based on Debian 8) which provide Python 2.7 (OS default) & Python 3.4. I manually installed Python 3.6.

In a virtualenv with python3.6 (chosen with -p option) the console as no history or command completion… and neither does the pdb command line. If I try python2.7 console: same result. But python3.4 just works fine (history and completion)…

All this works outside the virtualenv. I found some questions about IPython completion & history, but it works on my virtualenv. If someone has any clue on where I can fix this up I'd be happy. I do not think that this is an OS specific question.

Thanks for comments before down-voting, it's hard enough for a newcomer to build a reputation here…

freezed
  • 1,269
  • 1
  • 17
  • 34
  • Have you tried [readline](https://stackoverflow.com/a/9720341/7976758)? – phd Mar 22 '18 at 01:23
  • I've got `readline-common`, `libreadline5` and `libreadline6` installed… Installing `readline` with python require some other dependencies, I'm not sure this is a solution, all works outside `virtualenv`. – freezed Mar 22 '18 at 09:00
  • I have this problem too. With jedi or readline imported in the virtualenv, the autocompletion works fine, but I get no history. – Romain Vincent Aug 19 '18 at 03:40

0 Answers0