Anaconda prompt 启动jupyter时,出现版本的问题

|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| traitlets.traitlets.TraitError: The 'loop' trait of an IOLoopKernelManager instance must be a ZMQIOLoop, but a value of class 'tornado.platform.asyncio.AsyncIOMainLoop' (i.e. <tornado.platform.asyncio.AsyncIOMainLoop object at 0x000001B37F8A7908>) was specified. |

解决办法:

|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| It seems that upgrading ipykernel to >=4.8.2 and downgrading tornado to 4.5.3 can fix this issue. I first ran conda update --all and then conda install tornado=4.5.3 and finally conda install ipykernel |

执行结束报错:

ImportError: cannot import name 'create_prompt_application'

解决办法:

原因:prompt-toolkit版本不对

解决方法:安装符合要求的版本,如pip install prompt-toolkit==1.0.15

相关推荐
Hy行者勇哥5 分钟前
Python 与 VS Code 结合操作指南
开发语言·python
大力水手(Popeye)7 分钟前
Pytorch——tensor
人工智能·pytorch·python
飞翔的佩奇4 小时前
【完整源码+数据集+部署教程】表盘指针检测系统源码和数据集:改进yolo11-CA-HSFPN
python·yolo·计算机视觉·数据集·yolo11·表盘指针检测
larance5 小时前
SQLAlchemy 的异步操作来批量保存对象列表
数据库·python
搏博5 小时前
基于Python3.10.6与jieba库的中文分词模型接口在Windows Server 2022上的实现与部署教程
windows·python·自然语言处理·flask·中文分词
麦兜*6 小时前
Swift + Xcode 开发环境搭建终极指南
开发语言·ios·swiftui·xcode·swift·苹果vision pro·swift5.6.3
lxmyzzs6 小时前
pyqt5无法显示opencv绘制文本和掩码信息
python·qt·opencv
萧鼎7 小时前
Python pyzmq 库详解:从入门到高性能分布式通信
开发语言·分布式·python
艾伦~耶格尔8 小时前
【集合框架LinkedList底层添加元素机制】
java·开发语言·学习·面试
yujkss8 小时前
Python脚本每天爬取微博热搜-终版
开发语言·python