# Install Gurobi in Mac JuliaPro

**URL:** https://discourse.julialang.org/t/install-gurobi-in-mac-juliapro/17580
**Category:** Tooling
**Tags:** juliapro
**Created:** [November 15, 2018, 10:19pm UTC](https://discourse.julialang.org/t/install-gurobi-in-mac-juliapro/17580 "2018-11-15T22:19:03Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![tkoolen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tkoolen/32/1603_2.png) [@tkoolen](https://discourse.julialang.org/u/tkoolen)
#### Post date: [November 16, 2018, 1:13am UTC](https://discourse.julialang.org/t/install-gurobi-in-mac-juliapro/17580/4 "2018-11-16T01:13:12Z")

</div>

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](https://discourse.julialang.org/t/psa-how-to-quote-code-with-backticks/7530) for how to properly format code in Discourse by the way).

---

_[View the full topic](https://discourse.julialang.org/t/install-gurobi-in-mac-juliapro/17580)._
