我在Redhat上使用我的IPython版本時出現此錯誤。ImportError:沒有名爲shutil_get_terminal_size的模塊IPython
$ ipython --version
Traceback (most recent call last):
File "/usr/bin/ipython", line 7, in <module>
from IPython import start_ipython
File "/usr/lib/python2.7/site-packages/IPython/__init__.py", line 48, in module
from .core.application import Application
File "/usr/lib/python2.7/site-packages/IPython/core/application.py", line 24, in <module>
from IPython.core import release, crashhandler
File "/usr/lib/python2.7/site-packages/IPython/core/crashhandler.py", line 28, in module
from IPython.core import ultratb
File "/usr/lib/python2.7/site-packages/IPython/core/ultratb.py", line 121, in module
from IPython.utils.terminal import get_terminal_size
File "/usr/lib/python2.7/site-packages/IPython/utils/terminal.py", line 27, in module
import backports.shutil_get_terminal_size
**ImportError: No module named shutil_get_terminal_size**
你能幫我解決嗎?
類似quesiton並回答在這裏:http://stackoverflow.com/questions/372 32446/ipython-console-cant-locate-backports-shutil-get-terminal-size-and-wont-load – mhrtsh
我嘗試卸載並重新安裝,但仍然出現同樣的問題 – Majid