[E 16:44:55.077 NotebookApp] 500 GET /notebooks/ywj/deepfashion/clothes_change_ywj/%E6%9C%AA%E5%91%BD%E5%90%8D.ipynb (127.0.0.1) 10.640000ms referer=http://localhost:8888/tree/ywj/deepfashion/clothes_change_ywj ^C[I 16:45:19.037 NotebookApp] 中断 notebooks 运行所在的本地路径: /home/u1 0 活跃的内核 Jupyter Notebook 6.5.4 is running at: http://localhost:8888/?token=64aa04e30fef90caa54d1b22e10a8f9ddb4ffd145298aece or http://127.0.0.1:8888/?token=64aa04e30fef90caa54d1b22e10a8f9ddb4ffd145298aece
时间: 2023-08-05 13:10:11 浏览: 280
这个错误是因为jupyter notebook出现了一些问题,导致无法访问notebook文件。
首先,你需要检查你的notebook文件是否存在,并且确保文件名没有被改变。如果文件不存在或者文件名被改变了,那么你需要恢复该文件或者使用正确的文件名。
其次,你需要检查jupyter notebook的运行状态。如果jupyter notebook已经停止运行或者出现了其他问题,那么你需要重新启动jupyter notebook。可以使用以下命令:
```
jupyter notebook
```
这将会在默认浏览器中打开jupyter notebook的主页。如果你已经打开了一个notebook文件,那么你可以从主页中重新打开该文件。
如果以上方法都不能解决问题,你可以尝试重新启动你的计算机,或者卸载并重新安装jupyter notebook。
相关问题
C:\Users\ 飞>jupyter notebook you are using extensions. Read the migration plan to Notebook 7 to learn about the new features and the actions to take https://jupyter-notebook.readthedocs.io/en/latest/migrate_to_notebook7.html Please note that updating to Notebook 7 might break some of your extensions. [I 23:42:46.282 NotebookApp] Serving notebooks from local directory: C:\Users\飞 CI 23:42:46.282 NotebookApp][I 23:42:46.282 NotebookApp]23:42:46.282 NotebookApp]23:42:46.282 NotebookApp][C 23:42:46.33日 NotebookApp] Jupyter Notebook 6.5.4 is running at: http://localhost:8888/?token=982a53569759c9d614bf8a89d2cba4eb978ea30f830c2a6a or http://127.0.0.1:8888/?token=982a53569759c9d614bf8a89d2cba4eb978ea30f830c2a6a Use Control-C to stop this server and shut down all kernels (twice to skip confirmation) To access the notebook, open this file in a browser: file:///C:/Users/%E9%A3%9E/AppData/Roaming/jupyter/runtime/nbserver-6232-open.html Or copy and paste one of these URLs: http://localhost:8888/?token=982a53569759c9d614bf8a89d2cba4eb978ea30f830c2a6a or http://127.0.0.1:8888/?token=982a53569759c9d614bf8a89d2cba4eb978ea30f830c2a6a
这段信息是您使用 Jupyter Notebook 启动时显示的,它告诉您 Jupyter Notebook 正在哪个本地目录下运行,并提供了访问 Notebook 的 URL。您可以复制其中一个 URL,在浏览器中打开 Jupyter Notebook。同时,它还提醒您注意迁移计划,因为更新到 Notebook 7 可能会影响您的扩展。
"D:\Program Files\JetBrains\PyCharm 2021.2.3\bin\runnerw.exe" D:\ProgramData\anaconda3\envs\myenv\python.exe -m jupyter notebook --no-browser --notebook-dir=E:/Argorithms/Argorithms_code_project --port 8888 [I 20:54:15.958 NotebookApp] Writing notebook server cookie secret to C:\Users\Administrator\AppData\Roaming\jupyter\runtime\notebook_cookie_secret [E 20:54:15.958 NotebookApp] Failed to write cookie secret to C:\Users\Administrator\AppData\Roaming\jupyter\runtime\notebook_cookie_secret: [Errno 13] Permission denied: 'C:\\Users\\Administrator\\AppData\\Roaming\\jupyter\\runtime\\notebook_cookie_secret' [W 20:54:15.958 NotebookApp] Could not set permissions on C:\Users\Administrator\AppData\Roaming\jupyter\runtime\notebook_cookie_secret [W 20:54:16.332 NotebookApp] Error loading server extension jupyter_lsp Traceback (most recent call last): File "D:\ProgramData\anaconda3\envs\myenv\lib\site-packages\notebook\notebookapp.py", line 2050, in init_server_extensions func(self) File "D:\ProgramData\anaconda3\envs\myenv\lib\site-packages\jupyter_lsp\serverextension.py", line 76, in load_jupyter_server_extension nbapp.io_loop.call_later(0, initialize, nbapp, virtual_documents_uri) AttributeError: 'NotebookApp' object has no attribute 'io_loop' [W 20:54:16.811 NotebookApp] Loading JupyterLab as a classic notebook (v6) extension. [C 20:54:16.811 NotebookApp] You must use Jupyter Server v1 to load JupyterLab as notebook extension. You have v2.14.1 installed. You can fix this by executing: pip install -U "jupyter-server<2.0.0" [I 20:54:16.813 NotebookApp] Serving notebooks from local directory: E:/Argorithms/Argorithms_code_project [I 20:54:16.813 NotebookApp] Jupyter Notebook 6.5.7 is running at: [I 20:54:16.813 NotebookApp] http://localhost:8888/?token=fed631be10bd4b50f20457b2ff82ee3fc499711e24e8df45 [I 20:54:16.813 NotebookApp] or http://127.0.0.1:8888/?token=fed631be10bd4b50f20457b2ff82ee3fc499711e24e8df45 [I 20:54:16.813
<think>好的,我现在需要解决用户提出的Jupyter Notebook启动时的两个错误:Permission denied和AttributeError。首先,我需要分析这两个错误的原因,然后给出相应的解决方案。
首先,关于Permission denied: 'C:\Users\Administrator\AppData\Roaming\jupyter\runtime\notebook_cookie_secret'这个错误。通常,权限问题在Windows系统中可能由于文件或目录的所有权或访问权限设置不正确导致。Jupyter在启动时会尝试创建或访问某些运行时文件,如果当前用户没有足够的权限,就会触发此类错误。可能的解决方法是手动创建该文件并设置正确的权限,或者以管理员身份运行Jupyter Notebook,或者修改文件夹的权限。需要具体步骤,比如使用icacls命令来调整权限。
接下来是AttributeError: 'NotebookApp' object has no attribute 'io_loop'。这个错误可能与Tornado库的版本有关。Jupyter Notebook依赖Tornado作为Web服务器框架,不同版本的Tornado可能有API的变化。例如,在较新的版本中,io_loop属性可能已被移除或改名。需要检查当前安装的Tornado版本是否符合Jupyter的要求。可能的解决方法是降级Tornado到兼容的版本,比如5.x或6.x,具体取决于Jupyter的版本。用户可以通过pip来安装特定版本的Tornado。
然后,我需要验证这些解决方案的步骤是否正确。例如,对于权限问题,除了以管理员身份运行,还可以手动创建目录并设置权限,确保用户有写入权限。对于Tornado版本问题,需要查阅Jupyter官方文档或社区讨论,确认兼容的版本号,避免降级过多导致其他依赖问题。
另外,用户可能是在使用较新的Python环境或者更新了某些库后出现的问题,因此还需要建议用户检查其他可能的依赖冲突,或者创建一个干净的虚拟环境来重新安装Jupyter及其依赖,以排除其他干扰因素。
最后,确保提供的步骤清晰、具体,并且适用于Windows系统,因为用户提到的路径是Windows格式的。同时,提醒用户在操作前备份数据,防止意外情况发生。</think>### 解决Jupyter Notebook启动报错的方法
#### 1. **权限问题:`Permission denied: '...\notebook_cookie_secret'`**
- **原因**:Jupyter尝试在`C:\Users\Administrator\AppData\Roaming\jupyter\runtime`目录下创建`notebook_cookie_secret`文件,但当前用户权限不足。
- **解决方法**:
1. **手动创建文件并设置权限**:
- 以管理员身份打开命令行,执行以下命令:
```bash
mkdir C:\Users\Administrator\AppData\Roaming\jupyter\runtime
echo. > C:\Users\Administrator\AppData\Roaming\jupyter\runtime\notebook_cookie_secret
icacls "C:\Users\Administrator\AppData\Roaming\jupyter\runtime" /grant Administrator:F
```
2. **以管理员身份运行Jupyter**:
- 右键点击命令提示符或Anaconda Prompt,选择“以管理员身份运行”,再启动Jupyter。
3. **检查防病毒软件**:部分软件可能拦截文件写入操作,临时禁用后测试[^1]。
#### 2. **`AttributeError: 'NotebookApp' object has no attribute 'io_loop'`**
- **原因**:Tornado库版本过高导致兼容性问题。Jupyter Notebook 6.x以下版本依赖Tornado 5.x,而新版本可能默认安装Tornado 6+。
- **解决方法**:
1. **降级Tornado版本**:
```bash
pip install tornado==5.1.1
```
或升级Jupyter Notebook至最新版:
```bash
pip install --upgrade notebook
```
2. **检查依赖完整性**:
```bash
pip check
```
修复提示的版本冲突[^2]。
#### 3. **其他建议**
- 使用虚拟环境隔离依赖:
```bash
python -m venv jupyter_env
jupyter_env\Scripts\activate
pip install jupyter tornado==5.1.1
```
---
阅读全文
相关推荐















