Python install on Raspberry PI OS

Finally I change to docker, i think it is complicate but it is very easy install and use docker.

I format sd and install new bullseye 11 version in my pi

I exec:

sudo apt-get update && sudo apt-get upgrade
sudo curl -sSL https://get.docker.com | sh
sudo groupadd docker
sudo usermod -a -G docker $USER
docker run hello-world

–if not work:
su -s ${USER}
sudo chown “$USER”:"$USER" /home/"$USER"/.docker -R
sudo chmod g+rwx “$HOME/.docker” -R

docker pull ghcr.io/home-assistant/home-assistant
docker run -d \
  --name homeassistant \
  --privileged \
  --restart=unless-stopped \
  -e TZ=Europe/Madrid \
  -v /home/docker/homeassistant/config:/config \
  --network=host \
  ghcr.io/home-assistant/home-assistant:stable
  • Change TZ to yours
  • change /home/docker/homeassistant/config to your config dir.

that’s all folks