These instructions as provided by @anon34565116 have been confirmed to work by myself and others. They are specific to a Hass installation in a venv and were carried out on a Raspbian Stretch Lite OS on a Raspberry Pi 3.
They will download Python 3.7.3 source, build, compile install and replace your current venv w
-
sudo apt-get install build-essential tk-dev libncurses5-dev libncursesw5-dev libreadline6-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev
-
wget -O /tmp/Python-3.7.3.tar.xz https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tar.xz
-
cd /tmp
-
tar xf Python-3.7.3.tar.xz
-
cd Python-3.7.3
-
./configure
-
sudo make altinstall
-
sudo apt -y autoremove
-
cd
-
rm -r /tmp/Python-3.7.3
-
rm /tmp/Python-3.7.3.tar.xz
-
sudo systemctl stop [email protected]
-
sudo mv /srv/homeassistant /srv/homeassistant_old
-
sudo mkdir /srv/homeassistant
-
sudo chown homeassistant:homeassistant -R /srv/homeassistant
-
cd /srv/homeassistant
-
/usr/local/bin/python3.7 -m venv .
-
source bin/activate
-
pip install wheel homeassistant
20a. ** Note I chose to run hass
first time to see all the installation messages.**
20b. sudo systemctl start home-assistant@homeassi
ith Python 3.7.3
From all the posts on this subject I’ve seen these seem to be the most effective.
Again a big thank you to @anon34565116