So finden Sie, wo sich Python befindet
>>> import os
>>> import sys
>>> os.path.dirname(sys.executable)
'C:\\Python25'
Uptight Unicorn
>>> import os
>>> import sys
>>> os.path.dirname(sys.executable)
'C:\\Python25'
>>> import os
>>> import sys
>>> os.path.dirname(sys.executable)
'C:\\Python25'