Installare Python 3.8 su RaspberryPi

Posted by RedBlue on March 28, 2021 · 1 min read

Per installare HomeAssistant sul mio RaspberryPi 4, è necessario prima installare Python 3.8. Ecco quindi i pochi passaggi necessari ad installare Python 3.8 su RaspberryPi.

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 libopenjp2-7 libtiff5 libffi-dev libjpeg-dev bluetooth libbluetooth-dev -y

sudo pip3 install pybluez

wget https://www.python.org/ftp/python/3.8.6/Python-3.8.8.tgz

tar xzvf Python-3.8.8.tgz

cd Python-3.8.8/

./configure --enable-optimizations

make -j 8

sudo make install

Al termine (ci vorrà un po' di tempo), avrete installato Python 3.8 sul RaspberryPi.

Alla prossima..