In a separate post from @bosbourne he listed a successful method of upgrading Python to 3.7.3 with Hass in situ. It has worked for a number of users.
-
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 [email protected]