You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Jupyter Notebook启动应用程序报错及工作目录疑问求助

解决Jupyter Notebook启动时的Application Launch Error问题

Hey there, let's work through this Jupyter launch error you're dealing with. You mentioned trying the error message's suggested fixes without luck, and suspecting the working directory might be the culprit—let's start there and cover other common fixes too.

先验证工作目录的影响

  • 打开Anaconda Prompt,尝试手动指定工作目录启动Jupyter:
    jupyter notebook --notebook-dir="C:\Users\mayerk\AppData\Local\Continuum\anaconda3"
    
    如果这样能正常启动,就说明工作目录不匹配确实是问题根源。

修改Jupyter配置文件固定工作目录

  • 首先生成Jupyter配置文件(如果还没有的话):
    jupyter notebook --generate-config
    
    这会在C:\Users\mayerk\.jupyter目录下生成jupyter_notebook_config.py文件。
  • 用文本编辑器打开这个文件,找到以#c.NotebookApp.notebook_dir开头的行,去掉前面的#取消注释,然后把路径设置为你的Anaconda目录:
    c.NotebookApp.notebook_dir = 'C:\\Users\\mayerk\\AppData\\Local\\Continuum\\anaconda3'
    
    (注意Windows路径需要用双反斜杠)
  • 保存文件后,重启Anaconda Navigator再启动Jupyter,这会强制它使用正确的工作目录。

其他可能的排查方向

  • 更新Jupyter及相关包:版本不兼容可能导致问题。在Anaconda Prompt中运行:
    conda update jupyter
    
    等待更新完成后,再尝试启动Jupyter。
  • 重置Anaconda Navigator缓存:损坏的缓存文件可能干扰应用启动。关闭所有Anaconda相关程序,删除C:\Users\mayerk\.anaconda\navigator目录下的内容,然后重新打开Navigator试试。
  • 检查冲突的Python安装:确保系统默认Python是Anaconda提供的版本。在命令提示符中运行where python,如果第一个结果不是C:\Users\mayerk\AppData\Local\Continuum\anaconda3\python.exe,需要调整系统环境变量,让Anaconda的路径优先级更高。

你提到看到了开头为[I 09:30:37....的日志行,如果后面还有更详细的错误文本,可以查看C:\Users\mayerk\.jupyter\logs下的完整Jupyter日志——里面通常会有具体的故障线索。

内容的提问来源于stack exchange,提问作者Ken

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.25 08:30:50