amanda@serveramanda@host:~$ python --version Python 2.7.15rc1
Per https://stackoverflow.com/questions/10919569/install-a-module-using-pip-for-specific-python-version I uninstalled and tried to reinstall, specifying the python version, but that's choking in its own special way:
amanda@host:~$ python2.7 ~/.local/bin/pip install --user offlineimap Traceback (most recent call last): File "/home/amanda/.local/bin/pip", line 7, in <module> from pip._internal import main ImportError: No module named pip._internal
The full OfflineIMAP error, if that helps (it shouldn't):