#! /usr/bin/env python2 print "Hi, I'm a little Python program to check your Python installation" import sys print "Version:", sys.version if sys.version.startswith('2.7'): print "OK" else: print "ERROR: incorrect Python version" print "Is Numpy installed?" try: import numpy as np except: print "ERROR: Unable to load Numpy, please check your install" print "OK" print "Is Scipy installed?" try: import scipy except: print "ERROR: Unable to load Scipy, please check your install" print "OK" print "Is matplotlib installed?" try: import matplotlib except: print "ERROR: Unable to load matplotlib, please check your install" try: import matplotlib.pyplot except: print "ERROR: Unable to load matplotlib.pyplot, please check your install" print "OK" print "Congratulation, your Python installation seems operational."