Python is an interpreted language, so no explicit compilation step is required to run the examples. For Windows platforms, you can simply type the following in the Gurobi Python example directory (<installdir>/examples/python):
gurobi.bat mip1.pyFor Linux or Mac OS platforms, type:
gurobi.sh mip1.py
If you are a Python user, and wish to use Gurobi from within your own Python environment, you can install the gurobipy module directly into your environment. You do this by issuing this command from your <installdir>:
python setup.py installOn Linux or Mac OS systems, unless you are using your own private Python installation, you will need to run this command as super-user. Once gurobipy is successfully installed, you can type python mip1.py (more generally, you can type from gurobipy import * in your Python environment).