I have phyton 3.10 but it always shows "Error: Python 3.8 or higher is required"
the bug is in here:
python_version=$(python3 --version 2>&1 | grep -o '[0-9]\+\.[0-9]\+')
if [[ $(echo "$python_version >= 3.8" | bc -l) -eq 0 ]]; then
echo "Error: Python 3.8 or higher is required"
exit 1
fi
On some systems bc treats 3.10 as 3.1 after parsing, or locale screws up the decimal. Either way, 3.10 >= 3.8 becomes false in bc even though 3.10 > 3.8.
I have phyton 3.10 but it always shows "Error: Python 3.8 or higher is required"
the bug is in here:
On some systems bc treats 3.10 as 3.1 after parsing, or locale screws up the decimal. Either way, 3.10 >= 3.8 becomes false in bc even though 3.10 > 3.8.