I had the same problem, it was successfully fixed simply by replacing the _io.so file.
sudo find / -name _io.so
copy the path to the _io.so file, which does NOT belong to python-2.7.11. For example, copy the path _io.so, which is under python-2.7.5: / usr / local / Cellar / python / 2.7.5 / Frameworks / Python.framework / Versions / 2.7 / lib / python2.7 / lib-dynload / _io.so
Replace the file '/Users/Can/anaconda/lib/python2.7/lib-dynload/_io.so' with the _io.so you just found.
cp /usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so /Users/Can/anaconda/lib/python2.7/lib-dynload/
Then it will work.
source share