Installing the IPFS software and its library

At the time of writing, there are only two IPFS implementations: go-ipfs (written in the Go language) and js-ipfs (written in JavaScript). There is no IPFS implementation written in Python as of yet. The Go implementation is the more popular one, so we will use that.

Go to,, and download the software for your platform. For Ubuntu Linux, the file is named go-ipfs_v0.4.18_linux-amd64.tar.gz.

Extract this using the following command line:

$ tar xvfz go-ipfs_v0.4.18_linux-amd64.tar.gz

Then, install the binary using the following command:

$ cd go-ipfs$ sudo ./

This step is optional. Here, we export the IPFS_PATH environment variable to our shell:

$ export IPFS_PATH=/path/to/ipfsrepo ...

Get Hands-On Blockchain for Python Developers now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.