jupyter notebook删除后重装

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端上传文件,这样子更加快速
  • 5
    点赞
  • 30
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值