Re: `git p4` broken on machines which do not have python on path
- From
Illia Bobyr <illia.bobyr@gmail.com>
- Date
- Feb 6, 2025, 02:16 UTC
- Message-ID
- <101b03c5-dfad-41f0-8156-e541b8e6c68f@gmail.com>
- In-Reply-To
- <Z6QUeaoH_tV2ncwn@tapette.crustytoothpaste.net>
On 2/5/25 17:46, brian m. carlson wrote:
Show 5 quoted lines
> I realize that Python 3 is now the default, but there were apparently > still some people who want to use Python 2.7 last time this came up, so > the default shebang hasn't changed. According to Python upstream, > `python` can be of any version, although for all distros I'm aware of, > `python` is always version 2.
I just checked my Ubuntu 24.10 and `python` is `python3`.
❯ python --version Python 3.12.7
❯ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 24.10 Release: 24.10 Codename: oracular
❯ whereis python python: /usr/bin/python
❯ dpkg -S /usr/bin/python python-is-python3: /usr/bin/python
There are both `python-is-python2` and `python-is-python3` packages. They just provide a symlink for convenience. And one can use Python version managers to manage what `python` means, of cause.