---
# System prepended metadata

title: Installing SDG + jupyterlab in mac

---

# Installing SDG + jupyterlab in mac


On the main system
```shell=
brew update
brew upgrade
brew install python@3.9 llvm libomp virtualenv
```

```shell=
mkdir ~/sdg_py
cd ~/sdg_py
virtualenv env
. env/bin/activate
pip3 install jupyterlab pylab matplotlib
export CC=/usr/local/opt/llvm/bin/clang
export CXX=/usr/local/opt/llvm/bin/clang++

```

Now go and compile SDG

