Trying to use pip to install just installed another version of python (3.4) get error
ImportError: cannot import name \'_BACKCOMPAT_MAGIC_NUMBER\'
In my case, I was using pipenv, and the fix was to delete the virtualenv and reinstall the dependencies:
$ pipenv --rm $ pipenv install