问题:

安装anaconda后,使用

conda install jupyter notebook

安装jupyter,出现Bad config encountered during initialization: No such notebook dir:

解决方法如下:

  1. 在开始菜单找到Anaconda Promt并打开。

jupyter notebook启动出错:Bad config encountered during initialization:/ No such notebook dir:_保存文件

  1. 在Anaconda Promt输入:
jupyter notebook--generate-config

jupyter notebook启动出错:Bad config encountered during initialization:/ No such notebook dir:_开始菜单_02

  1. 根据弹出的地址找到jupyter_notebook_config.py的文件地址,然后打开此文件。

jupyter notebook启动出错:Bad config encountered during initialization:/ No such notebook dir:_保存文件_03

  1. 在文件中找到c.NotebookApp.notebook_dir准备修改jupyter notebook的安装位置

jupyter notebook启动出错:Bad config encountered during initialization:/ No such notebook dir:_保存文件_04

  1. 在Anaconda Promt输入“conda list nb_conda_kernels”查看jupyter notebook的安装地址:
conda list nb_conda_kernels

jupyter notebook启动出错:Bad config encountered during initialization:/ No such notebook dir:_解决方法_05

  1. 复制上一步的安装地址并将第4步中的c.NotebookApp.notebook_dir地址进行替换,替换完成后保存文件。

7.打开Anaconda Prom,输入jupyter notebook,成功打开jupyter notebook。