root@debian:/home/aleksandr# pyenv install 3.10.2
Downloading Python-3.10.2.tar.xz...
-> https://www.python.org/ftp/python/3.10.2/Python-3.10.2.tar.xz
Installing Python-3.10.2...
Installed Python-3.10.2 to /root/.pyenv/versions/3.10.2
root@debian:/home/aleksandr# pyenv versions
system
* 3.10.2 (set by /root/.pyenv/version)
root@debian:~/.pyenv/versions# pyenv versions
system
* 3.10.2 (set by /root/.pyenv/version)
root@debian:~/.pyenv/versions# python3 -V
Python 3.9.2
root@debian:~/.pyenv/versions#
Я бы сделал через Валидатор мейк, но пока так