It's recommended to use conda and create a new clean environment for the workshop:
conda create -n structured_prediction
conda activate structured_prediction
Install prerequisits:
conda install scikit-learn matplotlib cvxopt ipykernel nb_conda cython pillow
pip install pyqpbo
Install pystruct from github:
pip install https://github.com/pystruct/pystruct/archive/master.zip
You can find more materials and documenation on the pystruct website.