source /etc/lsb-release && echo "deb http://download.rethinkdb.com/apt $DISTRIB_CODENAME main" | sudo tee /etc/apt/sources.list.d/rethinkdb.list
wget -qO- https://download.rethinkdb.com/apt/pubkey.gpg | sudo apt-key add -
sudo apt-get update
sudo apt-get install rethinkdb
sudo apt-get update
sudo apt-get install g++ python3-dev
sudo apt-get install python3-setuptools
sudo easy_install3 pip
sudo pip install bigchaindb
But recently, I tried to install and there was an error message.

So i tried with
pip install bigchaindb==0.1.5
but also failed.

How can I fix it?
BigchainDB v0.1.5 required libffi-dev so you would need to also do apt-get install libffi-dev before installing bigchaindb.
For the latest version it seems to be because the setuptools installed from the repos is a really old version. Can you try doing pip install --upgrade pip wheel setuptools before installing bigchaindb.
We updated the docs in this pull request #276
@jindragon before updating setuptools, can you please run this in a terminal:
$ python3 -c 'import setuptools; print(setuptools.__version__)'
@jindragon would be amazing if you can try #279 before upgrading setuptools. The pull request checks if the version of setuptools you are using supports the ~ operator, and throws a human-friendly error if not.
I checked it is 21.0.0.
I couldn't check previous version..
hey @jindragon, after applying @r-marques suggestions, are you able to install BigchainDB?
Yes! Thanks very much!
Most helpful comment
Yes! Thanks very much!