问题:
Jupyter 无法保存和创建(我想象中的删除)任何文件类型。但我可以正常加载它们。
创建文件的示例
创建文件失败,创建新文件时出现错误。
'''在保存文件 'untitled.txt' 时发生意外错误:[Errno 2] 没有这样的文件或目录: 'C:\ Users \ me \ Documents \ jupyter_notebooks \ untitled.txt' '''
保存文件的示例
C:\WINDOWS\system32>jupyter notebook
[I 17:15:51.888 NotebookApp] JupyterLab beta preview extension loaded from c:\users\me\appdata\local\programs\python\python35\lib\site-packages\jupyterlab
[I 17:15:51.888 NotebookApp] JupyterLab application directory is c:\users\me\appdata\local\programs\python\python35\share\jupyter\lab
[I 17:15:52.091 NotebookApp] Serving notebooks from local directory: C:\Users\me\Documents\jupyter_notebooks
[I 17:15:52.091 NotebookApp] 0 active kernels
[I 17:15:52.091 NotebookApp] The Jupyter Notebook is running at:
[I 17:15:52.091 NotebookApp] http://localhost:8888/?token=*******************************01d1a67a61
[I 17:15:52.091 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 17:15:52.127 NotebookApp]
Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
http://localhost:8888/?token=*******************************01d1a67a61
[I 17:15:52.472 NotebookApp] Accepting one-time-token-authenticated connection from ::1
[I 17:16:01.628 NotebookApp] Kernel started: 77255bad-ad7a-4714-8221-1dd90a3a34b5
[W 17:16:11.656 NotebookApp] Timeout waiting for kernel_info reply from 77255bad-ad7a-4714-8221-1dd90a3a34b5
[I 17:16:25.646 NotebookApp] Adapting to protocol v5.0 for kernel 77255bad-ad7a-4714-8221-1dd90a3a34b5
[I 17:16:26.160 NotebookApp] Saving file at /jupyter_jupyter_lab.ipynb
[E 17:16:26.543 NotebookApp] Error while saving file: jupyter_jupyter_lab.ipynb [Errno 2] No such file or directory: 'C:\\Users\\me\\Documents\\jupyter_notebooks\\.~jupyter_jupyter_lab.ipynb'
尝试过:问题仍然存在。
我仔细检查了文件夹位置,它匹配。
C:\Users\me\Documents\jupyter_notebooks
我还尝试了:安装和运行,可以打开和读取,但不允许进行任何更改。
pip3 install --upgrade --force-reinstall --no-cache-dir jupyter
~ https://dev59.com/uVgQ5IYBdhLWcg3wg0PS#42667069
系统:
- Windows 10
- Python环境: 2.7 & 3.5
- 包管理器: pip / pip3
可能的贡献因素: 两天前做了一些系统更改,从那时起问题就出现了。我认为这是一个权限问题。我记得取消了一个"执行脚本的权限复选框",但它似乎只影响了Jupyter。
不可接受的解决方案:
"尝试使用Anaconda","重新安装Windows" - 系统运行良好,除了Jupyter无法进行更改。
提前感谢您的帮助。
~eb
文件
->另存为
->笔记本(.ipnb)
,然后将文件移动到所需位置。 - Niko Pasanen