reduce pip and apt-get calls in install-rpi