I have compiled a python2.7.15(I have to do this because tracemalloc isn't a native pkg in python2). But I cannot use arrow keys in the shell:
[GCC 8.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> asd^[[D^[[D^[[D
HOW TO fix it?