Install Gurobi in Mac JuliaPro

The KeyError means that the GUROBI_HOME environment was not set in the shell from which you started Julia. So just set it before starting Julia (probably just add the export GUROBI_HOME=... call to ~/.bash_profile so it’s done automatically).

(See PSA: how to quote code with backticks for how to properly format code in Discourse by the way).