macOS#
To access the terminal on macOS, use Cmd+Space
to enter Spotlight Search,
then search for “Terminal” and hit enter to open it. Next, follow these steps
to install LabGym.
Install the Xcode command line tools, a software package provided by Apple that includes
git
and a C/C++ compiler namedclang
.% xcode-select --install
A GUI installation window should pop up. Follow along and accept all the default values.
Install Homebrew, a command-line package manager for macOS that will simplify the installation of Python. To install Homebrew, run the following command:
% /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Note
If you’re on an Apple Silicon Mac, you will need to add Homebrew to PATH. To do this, enter the following command, then close and reopen your terminal window.
% echo 'eval $(/opt/homebrew/bin/brew shellenv)' >> ~/.zprofile
Use Homebrew to install Python 3.10.
% brew install python@3.10
Install
pipx
by following these instructions.To test your installation of
pipx
, close and reopen your terminal window, then type the following command:% pipx --version 1.4.3
If the version number prints successfully, then your installation is working properly. Otherwise, try running the
pipx ensurepath
command again.Install LabGym via
pipx
.% pipx install --python python3.10 LabGym
Install Detectron2 in the LabGym’s virtual environment.
% pipx runpip LabGym install 'git+https://github.com/facebookresearch/detectron2.git'
Launch LabGym.
% LabGym
The GUI will take a few minutes to start up during the first launch. If the LabGym GUI shows up, you have successfully installed LabGym!