Please help me somebody. I've installed python3.10 in Ubuntu 23.04 near python3.11. Than I create virtualenv -p python3.10 And after that interpreter don't recognize my UP/DOWN/LEFT/RIGHT keys
➜ virtualenv -p python3.10 venv
➜ ls
./ ../ venv/
➜ source venv/bin/activate
➜ python3
Python 3.10.13 (main, Aug 28 2023, 16:45:42) [GCC 12.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> ^[[B^[[A^[[B^[[A^C
KeyboardInterrupt
>>>
But when I ran my stock python3.11 interpreter everything is OK
➜ deactivate
➜ which python3
/usr/bin/python3
➜ python3
Python 3.11.4 (main, Jun 9 2023, 07:59:55) [GCC 12.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> help()
KeyboardInterrupt
>>>
I've installed python3.10 from source
wget https://www.python.org/ftp/python/3.10.13/Python-3.10.13.tgz
sudo tar xzf Python-3.10.13.tgz
cd Python-Python-3.10.13
sudo ./configure --enable-optimizations
sudo make altinstall
May be I don't know something that I should write in some config file
- I tried to install from pyenv, but result is the same
- From Python3.2 can not recognize UP/DOWN/LEFT/RIGHT keys in interpreter? didn't helps me
➜ sudo apt install libreadline-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libreadline-dev is already the newest version (8.2-1.3).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.