From SourceΒΆ

Triton is a fairly self-contained package and uses its own parser (forked from wgtcc) and LLVM-8.0+ for code generation.

sudo apt-get install llvm-8-dev
git clone;
cd triton/python/;
python develop;

This should take about 15-20 seconds to compile on a modern machine.

You can then test your installation by running the example in an environment that contains pytorch:

cd examples;