Appdirs is a small Python module for determining appropriate platform-specific dirs, e.g. a “user data dir”.
Github repo – https://github.com/ActiveState/appdirs
This error from my experience occurred when I updated my local branch from origin and ran pip install to get the latest installed packages.
pip tried to upgrade appdir but it failed for some unknown reasons, then the error came up:
IOError: [Errno 2] No such file or directory: ‘/.local/lib/python2.7/site-packages/appdirs-1.4.0.dist-info/METADATA’
What worked for me was running
$ pip install appdirs --upgrade
then:
$ pip install -r requirements.txt --upgrade
The issue was addressed here:
https://github.com/ActiveState/appdirs/issues/89