You can see the supported python versions on Debian wiki
https://wiki.debian.org/Python#Supported_Python_Versions
The listed distributions shipping python2.7 packages ended with Debian bullseye, which is Debian chimaera. Any newer release should not contain any python2.7 packages in the package repositories.
If `apt-cache policy python2` doesn’t show as belonging to any APT repository then it will be leftover from a previous release upgrade and can be safely removed.
`deborphan` may also pick up the python2.7 packages as having no packages depending on them.
--
Tom
> On 9 Jun 2025, at 06:04, Marc Shapiro via Dng <dng@???> wrote:
>
> Is there anything in the OS supplied applications that requires Python2.7?
>
> I have both Python2.7 and Python3.13 installed. The link /usr/bin/python points to /usr/bin/python3, which points to user/bin/python3.13. So the only time that Python2.7 would be used is if it is specifically called for in a script. I am not calling 2.7, so, unless there are OS supplied files that require it, I could delete 2.7, keeping only 3.13.
>
> Is there any reason to keep Python2.7?
>
>
> Marc
>
> _______________________________________________
> Dng mailing list
> Dng@???
> Manage your subscription: https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
> Archive: https://lists.dyne.org/lurker/list/dng.en.html