I have a Raspberry Pi 4 running Raspbian 10. I've been trying to update the version of Python 3 that is installed so I can run Home Assistant which required 3.9.0, but it's all gone a bit pear shaped. The Pi runs a couple of other things so I'm doing a manual install instead of using the bundled Home Assistant OS.
I did have Python 3.7.3 installed. I then installed 3.9.0 apparently successfully. However running python3 --version
was still reporting 3.7.3. After a bit of Googling I managed to get the
python --version
command to show 3.9.0. But python3 stubbornly continues to report 3.7.3. How do I get
python3 --version
to report 3.9.0 instead of 3.7.3?
I've also tried installing Python 3.9.13, but that errors out so I've abandoned that for now.
I have run sudo apt update and sudo apt upgrade, so everything is as up to date as it can be.
BTW, I know very little about Linux, so I know I could have easily screwed things up.