You first need to install Anaconda on your system. You will want to create a conda environment for executing the code. Start by setting up the environment, as instructured for TRex. In most situations, this amounts to running the following command at the terminal:
conda create -n wake -c trexing trex
You will then want to active the new environment:
conda activate wake
For running experiments, you will need DMXEnttecPro for controlling a Enttec DMX USB Pro, which controls the lights. This may be installed as follows:
pip install DMXEnttecPro timer plotly playsound multiprocess python-kasa asyncio
And the following:
pip3 install PyObjC
You will then want to install packages into that environment that are called by our code. For the kinematics, these packages can be installed as follows:
pip install ipyparallel jupyter numpy matplotlib pandas
And the following:
conda install -c conda-forge opencv
For my M1 Mac, I had to install the openblas package. After reinstalling numpy, I then had to reinstall TRex (conda install -c trexing trex).