Pyconstruct can be installed via Pip:
pip install pyconstruct
or from the source code available on GitHub:
python setup.py install
Pyconstruct requires PyMzn to be installed on your machine, together with MiniZinc. Check-out PyMzn installation guide for details.
Alongside MiniZinc, you will need a constraint solver. PyMzn supports many open-source solvers such as Gecode and Chuffed. However, we recommend you give Gurobi a try, it’s blazingly fast for the kind of problems we usually solve in constrained structured prediction. If you are in academia, they provide free licenses for research purpose.