Skip to content

Commit 98bb318

Browse files
authored
Merge pull request #829 from luxonis/install_depthai_fix
Added system-site-packages to venv for architectures where pyqt5 isn'…
2 parents 60b41d7 + a24b0c3 commit 98bb318

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

docs/source/_static/install_depthai.sh

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ elif [[ $(uname -s) == "Linux" ]]; then
210210
# install python 3.10
211211
if [ "$install_python" == "true" ]; then
212212
echo "installing python 3.10"
213-
213+
214214
sudo yes "" | sudo add-apt-repository ppa:deadsnakes/ppa
215215
sudo apt -y install python3.10
216216
sudo apt -y install python3.10-venv
@@ -219,13 +219,21 @@ elif [[ $(uname -s) == "Linux" ]]; then
219219

220220
echo "Creating python virtual environment in $VENV_DIR"
221221

222-
"$python_executable" -m venv "$VENV_DIR"
222+
machine=$(uname -m)
223+
if [[ $machine != 'armv6l' && $machine != 'armv7l' && $machine != 'aarch64' && $machine != 'arm64' ]]; then
224+
"$python_executable" -m venv "$VENV_DIR"
225+
else
226+
"$python_executable" -m venv "$VENV_DIR" --system-site-packages
227+
fi
223228

224229
source "$VENV_DIR/bin/activate"
225230
python -m pip install --upgrade pip
226231

227232
pip install packaging
228-
pip install pyqt5
233+
234+
if [[ $machine != 'armv6l' && $machine != 'armv7l' && $machine != 'aarch64' && $machine != 'arm64' ]]; then
235+
pip install pyqt5
236+
fi
229237
else
230238
echo "Error: Host $(uname -s) not supported."
231239
exit 99

0 commit comments

Comments
 (0)