Using a non-default Python installation
From gem5
You can use a non-default installation of the Python interpreter by either (1) rearranging your PATH so that scons finds the non-default 'python' first or (2) explicitly invoking an alternative interpreter on the scons script, e.g., "/usr/local/bin/python2.4 `which scons` [args]".