I have a number of Raspberry Pis, on which I'm running OctoPrint to control some of my 3D printers. I've been trying to update OctoPrint to the latest and greatest version, but it keeps erroring out. My guess is because each Raspberry Pi is running an old version of Python.
So, I need to update Python. How to?
You can first make sure your Raspberry Pi is up to date by running the following commands:
sudo apt update sudo apt upgrade
From there, check the currently installed version:
python --version python3 --version
If you're not seeing the latest and greatest version listed, follow the steps over at https://raspberrytips.com/install-latest-python-raspberry-pi/ to get the latest version of Python installed.