Can't upgrade to version 65, need Python 3.5.3 and pytango error

I just upgraded python to 3.6 on Ubuntu 16.04 and I can confirm it works, but I use virtual environments and I strongly to advise you to make use of that if you want to keep Ubuntu 16.04 as you might break the system when replacing python 3.5.2 by 3.6.

sudo add-apt-repository ppa:jonathonf/python-3.6
sudo apt-get update
sudo apt-get install python3.6
sudo apt-get install python3.6-venv
sudo apt-get install python3.6-dev

After that you’d just follow the guide https://home-assistant.io/docs/installation/virtualenv/.

But the venv should be created with the required python version (explicit):

python3.6 -m venv homeassistant
2 Likes