【python】 Anaconda jupyter 服务正常,内核启动失败, ipython启动失败

【前言】 由于Jupyter使用Ipython内核,说明该问题出现在Ipython内核启动时报错,

【排查】

  1. 查看jupyter后台日志,报:
    ImportError: cannot import name 'AsyncGeneratorItem'

  2. Ipython启动报异常:
    ImportError: cannot import name 'create_prompt_application'

  3. 发现问题:上网一查发现是 ipython启动的依赖库 prompt_toolkit 版本不兼容导致

【解决】

pip uninstall -y ipython prompt_toolkit
pip install ipython prompt_toolkit

python3.6环境

原文地址:https://www.cnblogs.com/andre-ma/p/14023146.html