Re: `git p4` broken on machines which do not have python on path

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/5/25 17:46, brian m. carlson wrote:
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.





[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux