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 Python 3.10. Scroll down to the bottom and click the
macOS 64-bit universal2 installeroption. Run the installer and select “Add python to path”.Upgrade
pip,wheel,setuptools.python3 -m pip install --upgrade pip wheel setuptoolsInstall LabGym via
pip.python3 -m pip install LabGymYou may want to downgrade PyTorch to v2.0.1:
python3 -m pip install torch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2
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!
If this doesn’t work, which typically is because the python3/script is not in your environment path. You can google ‘add python3 script to path mac’ to add it to path, or simply use the following commands to initiate LabGym:
python3
from LabGym import __main__
__main__.main()