gpt4 book ai didi

python - 将 Spyder 升级到 4.0.1 时出错 : ModuleNotFoundError: No module named 'IPython.core.inputtransformer2'

转载 作者:行者123 更新时间:2023-12-03 14:00:36 25 4
gpt4 key购买 nike

我最近通过 Anaconda 通过 conda update spyder 升级到 Spyder 4.0.1 .现在,当我尝试通过 Anaconda Navigator 启动 Spyder 时,程序会自动崩溃并显示以下转储:

Traceback (most recent call last):
File "/Users/ed/anaconda/lib/python3.6/site-packages/spyder/app/mainwindow.py", line 3718, in main
mainwindow = run_spyder(app, options, args)
File "/Users/ed/anaconda/lib/python3.6/site-packages/spyder/app/mainwindow.py", line 3559, in run_spyder
main.setup()
File "/Users/ed/anaconda/lib/python3.6/site-packages/spyder/app/mainwindow.py", line 1010, in setup
from spyder.plugins.ipythonconsole.plugin import IPythonConsole
File "/Users/ed/anaconda/lib/python3.6/site-packages/spyder/plugins/ipythonconsole/plugin.py", line 52, in
from spyder.plugins.ipythonconsole.widgets import ClientWidget
File "/Users/ed/anaconda/lib/python3.6/site-packages/spyder/plugins/ipythonconsole/widgets/__init__.py", line 16, in
from .debugging import DebuggingWidget
File "/Users/ed/anaconda/lib/python3.6/site-packages/spyder/plugins/ipythonconsole/widgets/debugging.py", line 22, in
from IPython.core.inputtransformer2 import TransformerManager
ModuleNotFoundError: No module named 'IPython.core.inputtransformer2'

我找不到任何有类似错误的人。正如有人建议的那样,我更新了 IPython,但它没有解决问题。有任何想法吗?

最佳答案

...因为这些都不适合我,所以我是如何解决它的:

  • 通过 conda list 检查您拥有的 IPython 版本
    就我而言,我得到了一个相当旧的版本 5.8.0而不是最近的
    (在撰写本文时 7.19.0 ...通过 conda search ipython 检查可用版本)
  • conda update ipython没有提供最新版本,我决定
    手动运行安装最新版本的命令
    (对我来说这是 conda install -c conda-forge ipython=7.19.0 )
  • 就是这样...
  • 关于python - 将 Spyder 升级到 4.0.1 时出错 : ModuleNotFoundError: No module named 'IPython.core.inputtransformer2' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59724049/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com