Install on Linux and OSX


First, make sure you have Pytorch installed.

Then, clone this repository with:

$ git clone

Next, install the dependencies.

$ cd inferno
$ pip install -r requirements.txt

If you use python from the shell:

Finally, add inferno to your PYTHONPATH with:


If you use PyCharm:

Refer to this QA about setting up paths with Pycharm.

Installation via PyPi / pip /

You need to install pytorch via pip before installing inferno. Follow the pytorch installation guide.

Stable release

To install inferno, run this command in your terminal:

$ pip install inferno-pytorch

This is the preferred method to install inferno, as it will always install the most recent stable release.

If you don’t have pip installed, this Python installation guide can guide you through the process.

From sources

First, make sure you have Pytorch installed. The sources for inferno can be downloaded from the Github repo. You can either clone the public repository:

$ git clone git://

Or download the tarball:

$ curl  -OL

Once you have a copy of the source, you can install it with:

$ python install