So you'd like to install garak and scan some language models for vulnerabilities? Great! You're in the right place.
garak runs from the command line / terminal, and works best on Linux and Mac OSX. If you're on windows, please give it a try, and let us know how you get on!
The easiest way to install garak is using Python's pip package manager. You need at least Python 3.10 to use garak.
Easy install with pip
You can use this one-liner from a terminal and you should be good to go:
python -m pip install -U garak
Happy hunting!
I don't have pip!
No worries! You can still use garak. If you don't have pip, you can install it. There are guides for that here on pypa.io; here's a summary.
If you're on Mac, then installing and using brew to install pip is strongly recommended - it doesn't run super quickly the first time, but the experience is really good after. Try something like:
Upgrade your pip installation, with python -m pip install -U pip
If you're on Windows, let us know how you get on!
pip install for python version 3.9 or lower
garak requires Python 3.10. If you don't have that, you can run garak in a conda container using a higher Python version, without disrupting everything else on your computer.