10-11-2021, 03:28 PM
Hi Tim,
Is it safe to update Python from 2.7.16 to version 3.8?
Is it safe to update Python from 2.7.16 to version 3.8?
Thank you for your donation!
Instruction Guide Python update
|
10-11-2021, 03:28 PM
Hi Tim,
Is it safe to update Python from 2.7.16 to version 3.8?
afaik the python 3 packages aren't an update of python 2 they're separate packages, thus you can have python 2 and python 3 installed simultaneously.
Then I think the default python instance is configured with the update-alternatives command. Not near a Debian or RaspiOS machine at the moment so can't be sure.
10-11-2021, 03:51 PM
Python 3 is already on the moOde image. like @vinnn mentioned there is prolly some config that has to be run to make Python 3 the default.
Code: pi@moode:~ $ python3
10-11-2021, 04:45 PM
So let's take a look at the /usr/bin/ directory
Code: pi@rpi4b2:~ $ ls -l /usr/bin/python*
Here's the start of the man page for update-alternatives Quote:update-alternatives(1) dpkg suite update-alternatives(1) I'm a dinosaur stuck in old style LInux. Rather than try to explain the alternatives system I'll leave it at "use your favorite search engine." Regards, Kent
10-13-2021, 08:05 PM
(10-11-2021, 03:33 PM)vinnn Wrote: afaik the python 3 packages aren't an update of python 2 they're separate packages, thus you can have python 2 and python 3 installed simultaneously.gotcha
10-13-2021, 08:06 PM
(10-11-2021, 03:51 PM)Tim Curtis Wrote: Python 3 is already on the moOde image. like @vinnn mentioned there is prolly some config that has to be run to make Python 3 the default. Yes, I see
10-13-2021, 08:12 PM
(10-11-2021, 04:45 PM)TheOldPresbyope Wrote: So let's take a look at the /usr/bin/ directory Thank you! So I was able to change the default python to 3.x from 2.x, however, the shutdownchecksetup.sh for my ATXRaspi does not seem to work even though I reinstalled and rebooted. Changed the default back to Python 2.x, reinstalled the shutdownchecksetup.sh and rebooted. Got the ATXRaspi working as before. I guess there is a way to choose which version of Python to run on the fly? Will need to investigate further. Basiclly, I found this: https://sxm-player.readthedocs.io/en/latest/readme.html and trying to get it to work within Moode. |
« Next Oldest | Next Newest »
|