ATualizar o Python da versao 3.5 para a 3.7 Home Assistant

sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgrade sudo sed -i 's/jessie/stretch/g' /etc/apt/sources.list sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgrade sudo reboot
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
cd /home/pi wget https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tgz tar xzvf Python-3.6.3.tgz cd Python-3.6.3/ ./configure make sudo make install
cd /srv/ sudo rm -r *
cd /srv/ sudo mkdir homeassistant sudo chown homeassistant:homeassistant homeassistant sudo su -s /bin/bash homeassistant cd /srv/homeassistant python3.6 -m venv . source bin/activate
pip3 install homeassistant hass

Comentários

Mensagens populares