diff --git a/bin/spack b/bin/spack index 9fbb65f349..b345a5079d 100755 --- a/bin/spack +++ b/bin/spack @@ -25,7 +25,8 @@ ############################################################################## import sys if not sys.version_info[:2] >= (2,6): - sys.exit("Spack requires Python 2.6. Version was %s." % sys.version_info) + v_info = sys.version_info[:3] + sys.exit("Spack requires Python 2.6 or higher. This is Python %d.%d.%d." % v_info) import os