The error
If you are trying to install gssapi with pip, it's common to have the following error.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-sadads/gssapi/setup.py", line 109, in <module>
raise Exception("Could not find main GSSAPI shared library. Please "
Exception: Could not find main GSSAPI shared library. Please try setting GSSAPI_MAIN_LIB yourself or setting ENABLE_SUPPORT_DETECTION to 'false'
The solution
sudo apt-get install python-pip libkrb5-dev
sudo pip install gssapi