原文地址: http://abelxu.blog.51cto.com/9909959/1852263
報錯信息:
解決辦法:
1姨拥、報錯信息顯示在 /usr/local/lib/python2.7/dist-packages/IPython/utils/terminal.py 的
from backports.shutil_get_terminal_size import get_terminal_size as _get_terminal_size
出錯;
2渠鸽、sudo vim erminal.py
打開此腳本叫乌;
3、將出錯的代碼段修改如下:
備注:Python2的啟動應該使用get_terminal_size在模塊shutil_backports中徽缚;
另參考問題
http://stackoverflow.com/questions/37232446/ipython-console-cant-locate-backports-shutil-get-terminal-size-and-wont-load