Score:1

python -v and python3 -V gives different version in Ubuntu 22.04 LTS

pf flag

python -V gives output as:

python3.11.1

python3 -V gives output as:

python3.10.6.

What does this mean? Which version is my Ubuntu 22.04 using by default?

Score:1
vn flag

The default Python version for Ubuntu 22.04 is Python 3.10.6, and this is what the system uses by default.

$ stat /usr/bin/python3
  File: /usr/bin/python3 -> python3.10
  Size: 10              Blocks: 0          IO Block: 4096   symbolic link
Device: 10302h/66306d   Inode: 10486495    Links: 1
Access: (0777/lrwxrwxrwx)  Uid: (    0/    root)   Gid: (    0/    root)

The symlink /usr/bin/python does not normally exist, so this must have been created when you installed Python 3.11.

So any application calling /usr/bin/python will use Python 3.11.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.