You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/_static/install_depthai.sh
+13-8Lines changed: 13 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,8 @@ trap 'RET=$? ; echo -e >&2 "\n\x1b[31mFailed installing dependencies. Could be a
12
12
while [ "$path_correct"="false" ]
13
13
do
14
14
echo""
15
-
read -p $'ENTER absolute installation path for depthai or leave empty and default path: $HOME will be used.\n' -r install_path
15
+
echo'ENTER absolute installation path for depthai or leave empty and default path: $HOME will be used.'
16
+
read install_path < /dev/tty
16
17
echo""
17
18
18
19
if [ "$install_path"="" ];then
@@ -44,15 +45,16 @@ python_version_number=""
44
45
if [[ "$python_version"!='Python'* ]];then
45
46
python_version=""
46
47
fi
47
-
echo$'\n'
48
+
echo""
48
49
49
50
# check default python version, offer it to the user or get another one
50
51
while [ "$python_chosen"="false" ]
51
52
do
52
53
if [[ "$python_version"=="" ]];then
53
54
echo"No python version found."
54
55
echo"Input path for python binary, version 3.8 or higher, or leave empty and python 3.10 will be installed for you."
55
-
read -p $'Press any key to continue\n' -r python_binary_path
56
+
echo"Press any key to continue"
57
+
read python_binary_path < /dev/tty
56
58
# python not found and user wants to install python 3.10
57
59
if [ "$python_binary_path"="" ];then
58
60
install_python="true"
@@ -65,14 +67,16 @@ do
65
67
echo"Python version: $python_version found."
66
68
if [ "$nr_1"-gt 2 ] && [ "$nr_2"-gt 7 ];then# first two digits of python version greater then 3.7 -> python version 3.8 or greater is allowed.
67
69
echo"If you want to use it for installation, press ANY key, otherwise input path to python binary."
68
-
read -p $'Press any key to continue\n' -r python_binary_path
70
+
echo"Press any key to continue"
71
+
read python_binary_path < /dev/tty
69
72
# user wants to use already installed python whose version is high enough
70
73
if [ "$python_binary_path"="" ];then
71
74
python_chosen="true"
72
75
fi
73
76
else
74
77
echo"This python version is not supported by depthai. Enter path to python binary version et least 3.8, or leave empty and python 3.10 will be installed automatically."
75
-
read -p $'Press any key to continue\n' -r python_binary_path
78
+
echo"Press any key to continue"
79
+
read python_binary_path < /dev/tty
76
80
# python version is too low and user wants to install python 3.10
77
81
if [ "$python_binary_path"="" ];then
78
82
install_python="true"
@@ -159,7 +163,7 @@ if [[ $(uname -s) == "Darwin" ]]; then
159
163
"$python_executable" -m venv "$VENV_DIR"
160
164
# activate environment
161
165
source"$VENV_DIR/bin/activate"
162
-
pip install --upgrade pip
166
+
python -m pip install --upgrade pip
163
167
164
168
# install launcher dependencies
165
169
# only on mac silicon point PYTHONPATH to pyqt5 installation via homebrew, otherwise install pyqt5 with pip
0 commit comments