gpt4 book ai didi

ipython - 导入错误 : No module named shutil_get_terminal_size IPython

转载 作者:行者123 更新时间:2023-12-04 16:42:41 25 4
gpt4 key购买 nike

我在 Redhat 上的 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**

你能帮我解决吗?

最佳答案

根据 this question , 尝试:

conda config --add channels conda-forge
conda install backports.shutil_get_terminal_size

关于ipython - 导入错误 : No module named shutil_get_terminal_size IPython,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37734345/

25 4 0