美文网首页Deep Learning
jupyter python has stopped worki

jupyter python has stopped worki

作者: yuanthu | 来源:发表于2020-10-22 13:14 被阅读0次

自己的jupyter坏了出现jupyter python has stopped working,
研究很多关于卸载jupyter的桥段, 我都以执行失败告终, 包括官网的 uninstall all the reference packages...


image.png

我认为, 用 pip 不明智, 如上官网doc, 所以需要一个包一个包找很久才能做到all refernence package 被uninstalled,

python -m pip uninstall jupyter
pip uninstall jupyter jupyter_core  jupyter-client  jupyter-console notebook  qtconsole nbconvert  nbformat

pip install pip-autoremove
pip-autoremove jupyter -y

那么问题是, 我不能通过

conda uninstall jupyter lab

一样执行

conda uninstall noterbook

这个或许是因为默认的安装值被改变,那么只要恢复默认就可以:

jupyter notebook --generate-config
conda uninstall notebook
image.png

这里有个问题是如果其他环境也有jupyter,那么需要激活这个环境再执行uninstall, 激活环境并删除代码是:

activate my_env
conda uninstall notebook
如果此时再command prompt运行
jupyter notebook
依然启动jupyter notebook,这里需要不仅卸载conda安装的notebook,而且要按照上面pip一次卸载安装包, 卸载pip安装的notebook:
pip uninstall jupyter jupyter_core  jupyter-client  jupyter-console notebook  qtconsole nbconvert  nbformat

执行完

jupyter notebook

命令依然能够启动notebook, 我的笨办法是:
1.或许是pip3安装的没有卸载,使用pip3卸载上面的packages
2.conda删除notebook失败, 重复用conda uninstall 上面所有的jupyter包

conda uninstall jupyter
conda uninstall  jupyter_core
conda uninstall  jupyter-client 
conda uninstall  jupyter-console
conda uninstall notebook
conda uninstall qtconsole
conda uninstall nbconvert
conda uninstall nbformat

3.或许是conda版本太低, conda 执行

conda update --force conda 

后再执行 conda uninstall 上面所有包,如果没作用卸载conda再用pip 卸载notebook
4.或许需要找到所有conda的环境中关于jupyter 的包, 卸载掉

image.png

重安装

使用conda:

conda install -c conda-forge jupyterlab
conda install -c conda-forge notebook

其他解决jupyter python has stopped working的方法:

通过Pycharm打开jupyter包, 执行ipy代码, 并安装jupyter包, 启动Jupyter.

相关文章

网友评论

    本文标题:jupyter python has stopped worki

    本文链接:https://www.haomeiwen.com/subject/rrrmpktx.html