Skip to content

Instantly share code, notes, and snippets.

@guiyang882
Created December 20, 2016 11:08
Show Gist options
  • Save guiyang882/c2f30149938206abc47138d46146ca09 to your computer and use it in GitHub Desktop.
Save guiyang882/c2f30149938206abc47138d46146ca09 to your computer and use it in GitHub Desktop.
主要是解决pip 安装ipython 后启动不起来,发生了shutil_get_terminal_size ?
/usr/lib/python2.7/site-packages/IPython/utils/terminal.py

from backports.shutil_get_terminal_size import get_terminal_size as _get_terminal_size
from shutil_backports import get_terminal_size as _get_terminal_size
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment