【解决方法】修改Jupyter默认路径

  1. 打开Anaconda Prompt
  2. 输入C:\Users\Admin>jupyter notebook --generate-config
    显示
Writing default config to: C:\Users\Admin\.jupyter\jupyter_notebook_config.py

找到该位置C:\Users\Admin\.jupyter,打开jupyter_notebook_config.py,搜索dir,找到

## The directory to use for notebooks and kernels.
#c.NotebookApp.notebook_dir = '#'
  1. 修改为c.NotebookApp.notebook_dir = 'E:\Jupyter',记得去掉前面的#
  2. 检查是否修改成功:在Anaconda Prompt输入jupyter notebook
Serving notebooks from local directory: E:\Jupyter

有这句话即成功。

你可能感兴趣的:(解决方法,Python)