运行代码时python是灰色的,并且命令框显示
ERROR: tornado.general: Uncaught exception in ZMQStream callback
…
ValueError: signal only works in main thread
解决方法:
pip install update pyzmq ipykernel
运行完这个之后还是显示上述错误,之后再运行
pip install "pyzmq==17.0.0" "ipykernel==4.8.2"
运行完之后显示
ERROR: Cannot uninstall ‘ipykernel’. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
没管这个问题,直接重新启动jupyter,可以运行了