|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| 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