To install Kornia, you can do it in two different ways: using the provided PyPi wheels or directly from source.


Kornia only has as a dependency Pytorch.

  1. From pip:

pip install kornia
pip install kornia[x]  # to get the training API !
  1. From source:

python install
  1. From source using pip:

pip install git+

Once you succeeded installing Kornia check you can import:

python -c "import kornia; print(kornia.__version__)"