Skip to content

Commit 1d69a2c

Browse files
Gasoonjiamalfet
authored andcommitted
Update install_requirements.sh (#884)
Current install_requirements.sh statically uses python3 to check python version; however, python3 may not exist in user's env. Change to use $PYTHON_EXECUTABLE
1 parent 7ff67e6 commit 1d69a2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install_requirements.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ then
1818
fi
1919

2020
# Check python version. Expect 3.10.x or 3.11.x
21-
printf "import sys\nif sys.version_info.major != 3 or sys.version_info.minor < 10 :\n\tprint('Please use Python >=3.10');sys.exit(1)\n" | python3
21+
printf "import sys\nif sys.version_info.major != 3 or sys.version_info.minor < 10 :\n\tprint('Please use Python >=3.10');sys.exit(1)\n" | $PYTHON_EXECUTABLE
2222
if [[ $? -ne 0 ]]
2323
then
2424
exit 1

0 commit comments

Comments
 (0)