win10系统,利用conda 先卸载 再安装 jupyter notebook

@创建于:2022.04.22
@修改于:2022.04.22

Anaconda自动安装juypyter notebook。长时间后,jupyter notebook出现问题:无法连接内核;打不开闪退等。本篇利用先卸载再重装策略,解决问题。

1、卸载

进入Anaconda Prompt模式(管理员身份打开),输入如下命令:

conda uninstall notebook

经过长时间运行,结束后,发现Jupyter Notebook启动栏和快捷键消失了,表明卸载成功了。下面的命令不起作用,也表明卸载成功。

jupyter notebook

pip install pip-autoremove
pip-autoremove jupyter -y

2、安装

进入Anaconda Prompt模式(管理员身份打开),输入如下命令:

pip install --upgrade --force-reinstall --no-cache-dir jupyter

pip install --user --upgrade --force-reinstall --no-cache-dir jupyter

pip3 install --upgrade --force-reinstall --no-cache-dir jupyter
pip3 install --user --upgrade --force-reinstall --no-cache-dir jupyter

以上安装方法是失败的,安装过程报错,不清楚为什么!有知道原因的,请您给我留言,告诉我。提前感谢。


conda install -y jupyter

conda install jupyter notebook

安装成功后,Jupyter Notebook启动栏和快捷键也没有出现。有博客说,需要做特殊配置。本文不赘述

3、重启Jupyter

进入Anaconda Prompt模式(管理员身份打开),输入如下命令:

jupyter notebook

能够被启动,表明安装成功了。

Original: https://blog.csdn.net/chenhepg/article/details/124355385
Author: 条件漫步
Title: win10系统,利用conda 先卸载 再安装 jupyter notebook

原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/770545/

转载文章受原作者版权保护。转载请注明原作者出处!

(0)

大家都在看

亲爱的 Coder【最近整理,可免费获取】👉 最新必读书单  | 👏 面试题下载  | 🌎 免费的AI知识星球