Currently, we are supporting Python 3 (version 3.6 is recommended). There are several ways to install Cornac:

  • From PyPI (you may need a C compiler):

    pip3 install cornac
  • From Anaconda:

    conda install cornac -c qttruong -c pytorch
  • From the GitHub source (for latest updates):

    # Optional: install Cython
    pip3 install cython
    # Clone Cornac from the main repository
    git clone
    cd cornac
    # You will need a C compiler
    python3 install


Some installed dependencies are CPU versions. If you want to utilize your GPU, you might consider: