File tree Expand file tree Collapse file tree 1 file changed +19
-6
lines changed
Expand file tree Collapse file tree 1 file changed +19
-6
lines changed Original file line number Diff line number Diff line change 7878
7979sudo apt install -y --no-install-recommends " ${APT_PACKAGES[@]} "
8080
81- sudo python3 -m pip install \
82- --upgrade \
83- --ignore-installed \
84- --break-system-packages \
85- mediapipe==0.10.21 \
81+ # Packages to install via pip
82+ PYTHON_PACKAGES=(
8683 psutil \
8784 git+https://github.com/eigendude/pymata-express@master#egg=pymata-express \
8885 pyserial \
8986 telemetrix-aio \
87+ )
88+
89+ # If running on ARM, the latest MediaPipe is v0.10.18
90+ if [[ ${PLATFORM_ARCH} == arm* ]]; then
91+ PYTHON_PACKAGES+=(
92+ mediapipe==0.10.18
93+ )
94+ else
95+ PYTHON_PACKAGES+=(
96+ mediapipe==0.10.21
97+ )
98+ fi
9099
91100# Install Matplotlib from pip to ensure Mediapipe's 3-D tooling has the newer
92101# wheel even when an older apt package is already present on the system.
102+ PYTHON_PACKAGES+=(
103+ matplotlib
104+ )
105+
93106sudo python3 -m pip install \
94107 --upgrade \
95108 --ignore-installed \
96109 --break-system-packages \
97- matplotlib
110+ " ${PYTHON_PACKAGES[@]} "
You can’t perform that action at this time.
0 commit comments