#create new pyhton environment
python -m venv envpicframe
#switch to python environment
source envpicframe/bin/activate
# install picframe via pip
pip install picframe
#start picframe - will create default config
picframe -i .
# if this fails - try to install sdl2
sudo apt install libsdl2-dev -y
# and run picframe i . again - this will create picframe_data folder
#adjust config
sudo nano picframe_data/config/configuration.yaml
#run picframe and test config
/usr/bin/python3 /home/pi/picframe_data/run_start.py /home/pi/picframe_data/config/configuration.yaml
#add autostart config
sudo nano /etc/systemd/system/picframe.service
# picframe.service content
[Unit]
Description=Picframe autostart
After=multi-user.target
[Service]
Type=idle
User=root
ExecStart=/home/pi/envpicframe/bin/python3 /home/pi/picframe_data/run_start.py /home/pi/picframe_data/config/configuration.yaml
#Restart=always
[Install]
WantedBy=multi-user.target
#enable picframe service
sudo systemctl enable picframe.service
#start service
sudo systemctl start picframe.service
more is available here: https://github.com/helgeerbe/picframe/wiki/Getting-Started