在新建kernel时遇到了此问题。 解决方法: pip install --upgrade jupyter_client 之后 python -m ipykernel install --name XXXX就不会报错了