jupyter notebook的安装有两种方式:
一、安装anaconda
安装anaconda之后,不需要额外安装jupyter notebook
以下是本文的重点,即仅安装python的情况下,安装jupyter notebook
二、仅安装jupyter notebook
1. 按下win键+R打开命令终端并输入cmd后确认
2. 弹出以下窗口,输入 pip install notebook ,按下 Enter
这样,jupyter notebook 就安装好了。
打开方式: win键 + R 输入 jupyter notebook 即可
jupyter notebook 修改文件存储路径
首先,查看 jupyter notebook 的文件存储路径
其次,找到 .jupyter ,看看是否有jupyter_notebook_config.py这个文件
如果没有,则需要生成一个,打开终端,win+R,输入
jupyter notebook --generate-config
下一步进行修改存储路径,用记事本打开这个文件
找到这一行,将 c.NotebookApp.notebook_dir 前的 # 删除,并在后面 ' ' 加上文件存储的新路径,保存后重启 jupyter notebook 即可。