diff --git a/twint/cli.py b/twint/cli.py index f463d687..7fa7bf07 100644 --- a/twint/cli.py +++ b/twint/cli.py @@ -331,8 +331,8 @@ def main(): def run_as_command(): - version = ".".join(str(v) for v in sys.version_info[:2]) - if float(version) < 3.6: + version = sys.version_info[:2] + if version[0] < 3 or (version[0] == 3 and version[1] < 6): print("[-] TWINT requires Python version 3.6+.") sys.exit(0)