2023-10-29
阅读量:
9141
python之jupyter notebook黑框闪退和报错提示ModuleNotFoundError: No module named 'notebook.notebookapp'
方法一:
有的电脑用户名是汉字也会造成jupyter闪退,处理方法
1,修改高级系统设置的环境变量之用户变量(用户名是汉字,建议需要试一下这个操作,或者电脑用户名改为英文或拼音)
TEMP 和TMP的值 都修改为 : %systemroot%\TEMP
方法二(方法一不行的话,可以继续试方法二)
jupyter 黑框闪退
第1个报错:
ModuleNotFoundError: No module named 'notebook.notebookapp'
解决方法:cmd依次执行如下代码
pip uninstall notebook
pip install notebook
然后可能会遇到第2个报错:
ModuleNotFoundError: No module named 'jupyter_server.contents'
解决方法:cmd依次执行如下代码
pip uninstall traitlets
pip install traitlets==5.9.0 --user






推荐帖子
0条评论
0条评论
0条评论