From 6d9ab9f47aa16a2dfa843c2401eefc1080b4cd5f Mon Sep 17 00:00:00 2001 From: Yossi Date: Wed, 12 Apr 2017 13:22:32 +0300 Subject: [PATCH] install picamera & apt-get pip --- stage2/01-sys-tweaks/01-run.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/stage2/01-sys-tweaks/01-run.sh b/stage2/01-sys-tweaks/01-run.sh index 40b2490..252d2e8 100755 --- a/stage2/01-sys-tweaks/01-run.sh +++ b/stage2/01-sys-tweaks/01-run.sh @@ -122,15 +122,11 @@ sudo chmod 777 -R /home/Cardigan/modules/video/ echo "========== Installing pip ============" -sudo wget https://bootstrap.pypa.io/get-pip.py -sudo chmod +x get-pip.py -sudo python get-pip.py +sudo apt-get install python-pip echo "========== Installing Numpy ============" sudo pip install numpy -sudo rm get-pip.py - echo "========== Downloading and installing OpenCV ============" cd / # git clone https://github.com/Itseez/opencv.git --depth 1 @@ -160,6 +156,7 @@ sudo rm opencv-3.1.0.zip echo "========== Install picamera ============" +sudo pip install picamera sudo pip install "picamera[array]" # enable camera on raspi-config echo "" >> /boot/config.txt