News for hackers. Stuff that matters.
Re:I just want to run this one Python script by stavros on Monday November 08, 2021 @03:57PM (#29154172)
Are you sure? AFAIK python points to the default Python, be that 2 or 3.
Re:I just want to run this one Python script by MrStonedOne on Monday November 08, 2021 @06:42PM (#29155827)
so, i haven't had this with python, but i have a webserver i manage right now where there are 3 versions of php installed, and `php` as a command returns command not found. This came about when the default version was uninstalled as insecure, but was intentionally not fixed because nothing broke (since fpm managed all of this anyways) and cronjobs were already using the versioned command names and having it error ensures thought is being done into the php version the code runs.

So I do wonder how many distros (and manual install workflows) for python could cause this to happen if python2 got uninstalled from a system that had both, where python get removed, rather then updated to point to python3.

Re:I just want to run this one Python script by nomel on Monday November 08, 2021 @04:27PM (#29154510)
It's the other way around, in all systems I've found. python3 (or python3.x) is the actual executable, with python being a symlink to, usually, python 2.
Re:I just want to run this one Python script by stavros on Monday November 08, 2021 @04:42PM (#29154646)
Sorry, typo. I meant to say `python` is a symlink to the default Python (you can sometimes change the default Python), but it'll almost always exist and point to a valid interpreter.