diff --git a/x.py b/x.py index 928a7496cb70e..cf9c74f7cf088 100755 --- a/x.py +++ b/x.py @@ -26,8 +26,8 @@ try: os.execvp("python3", ["python3"] + sys.argv) except OSError: - # Python 3 isn't available, fall back to python 2 - pass + print("Python 3 is not available. Please install Python 3.6 or later.") + sys.exit(1) # soft deprecation of old python versions skip_check = os.environ.get("RUST_IGNORE_OLD_PYTHON") == "1"