Title

Jupyter notebook 报错:ImportError: cannot import name 'secure_write'

Posted on 2022-08-10 14:48  CuiQi  阅读(870)  评论(1编辑  收藏  举报

github上有这个回答:https://github.com/jupyter/notebook/issues/5014

看起来部分可以用这个解决:

pip install --upgrade jupyter_client

但是还不好用,试了这个:

(替换了paths.py文件) https://community.deepcognition.ai/t/importerror-cannot-import-name-secure-write/1134

用everything找jupyter_core文件夹,把其中paths.py文件替换为下面的文件:

(https://github.com/jupyter/jupyter_core/blob/master/jupyter_core/paths.py)

解决问题