Skip to content

Error: Python 3.8 or higher is required #3

Description

@erikdemarco

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions