It may just be me, however using Ubuntu 17.04, I couldn't install this as described and get a command linegitlab
in/usr/local/bin
.
To achieve this I needed to run with sudo and provide a home directory, using:
sudo -H pip3 install python-gitlab
In page: install.rst