個人系統環境是win10,安裝了anaconda3 for python 3.6.6
首先須要配置notebook的變量環境:打開 cmd 輸入命令 jupyter notebook --generate-config,根據下一步的提示輸入命令y,最後成功在C:\Users\你的用戶名.jupyter目錄中生成jupyter_notebook_config.py文件。python
C:\Users\Administrator>jupyter notebook --generate-config
Overwrite C:\Users\Administrator\.jupyter\jupyter_notebook_config.py with default config? [y/N]y
Writing default config to: C:\Users\Administrator\.jupyter\jupyter_notebook_config.pyblog
但經過改寫jupyter_notebook_config.py文件中」c.NotebookApp.notebook_dir「語句的方式並不能改變jupyter notebook的默認路徑。採用如下辦法:
右鍵jupyter notebook,打開屬性中的快捷方式,將目標最後的%USERPROFILE%前加上須要的默認路徑,就成功了。cmd