I have just installed python3.10-full in Debian bookworm alongside 3.9, because I'd like to test an application with the newer python version.
So I am creating a virtual environment running:
$ python3.10 -m venv threeten
After activating the venv, python --version returns Python 3.9.9 while python3 --version returns Python 3.10.1
If I list the venv bin directory I get:
(threeten) $ ls -l threeten/bin/ | grep python
lrwxrwxrwx 1 es es 10 Dec 23 09:58 python -> python3.10
lrwxrwxrwx 1 es es 10 Dec 23 09:58 python3 -> python3.10
lrwxrwxrwx 1 es es 19 Dec 23 09:58 python3.10 -> /usr/bin/python3.10
and:
(threeten) $ which python
/home/es/threeten/bin/python
I tried relinking threeten/bin/python to /usr/bin/python3.10 with no success.
Is anyone experiencing the same problem? Am I doing something wrong? Thank you!