windows删除jupyter notebook 没办法的办法(单独的pip uninstall jupyter不会删除相关的包):
# -y表示yes
pip uninstall jupyter -y
pip uninstall jupyter_core -y
pip uninstall jupyter-client -y
pip uninstall jupyter-console -y
pip uninstall notebook -y
pip uninstall qtconsole -y
pip uninstall nbconvert -y
pip uninstall nbformat -y
安装jupyter notebook的步骤:
- 将python添加到path中,然后命令行窗口输入: pip install jupyter,这样jupyter就安装在python的scripts下

- 启动jupyter notebook,这时候工作路径默认为安装jupyter的路径,所以我们需要更改

- 更改工作路径
命令行窗口输入: jupyter notebook --generate-config

找到对应路径下的jupyter_notebook_config.py配置文件

打开配置文件,找到“c.NotebookApp.notebook_dir =……”,把路径改成自己的工作目录(注意要把"#"去掉)

- 重新启动jupyter notebook:
可以看到工作目录已经被修改了 - 可以直接将文件拖到工作目录中,不需要在web端上传文件,这样子更加快速
本文详细介绍了如何在Windows操作系统中彻底卸载Jupyter Notebook及其相关组件,包括使用pip逐一卸载各个包。之后,提供了安装Jupyter Notebook的步骤,包括将Python添加到PATH环境变量,通过pip安装Jupyter,并更改其默认工作目录的方法。此外,还指导读者如何配置Jupyter Notebook的工作目录,以便更高效地使用。
1373





