IPython console can't locate “backports.shutil_get_terminal_size” and won't load

后端 未结 7 1800
别那么骄傲
别那么骄傲 2020-12-24 03:21

I\'m running Python2.7 on windows 10 doing env and most pkg management with Anaconda. After upgrading a number of packages, my ipython console now fails to start in any IDE

7条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-24 03:43

    • Works for Anaconda Python version Anaconda2-4.2.0-Linux-x86_64.sh
    • Edit the file and get rid the "try" and "except" import statements
    • Add in the new import statement
    • Update config parser => ./conda install configparser
    • Install nbbrowserpdf => .pip install nbbrowserpdf

      vim +22 /home/alienone/anaconda2/lib/python2.7/site-packages/IPython/utils/terminal.py

      from backports import shutil_get_terminal_size as _get_terminal_size

提交回复
热议问题